Probably fix crash when reaching light count limit in G_MoveEffectors SE50 code.

git-svn-id: https://svn.eduke32.com/eduke32@2320 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-02-08 11:01:03 +00:00
parent 997375bd20
commit 5846d73d30

View file

@ -7883,11 +7883,13 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
actor[i].lightId = polymer_addlight(&mylight);
if (actor[i].lightId >= 0)
{
actor[i].lightptr = &prlights[actor[i].lightId];
// Hack in case polymer_addlight tweaked the horiz value
if (actor[i].lightptr->horiz != SH)
SH = actor[i].lightptr->horiz;
// Hack in case polymer_addlight tweaked the horiz value
if (actor[i].lightptr->horiz != SH)
SH = actor[i].lightptr->horiz;
}
break;
}