more array iteration fixes.

This commit is contained in:
Christoph Oelckers 2023-10-15 18:49:57 +02:00
parent b05706929d
commit 62753c02f0
2 changed files with 4 additions and 4 deletions

View file

@ -380,7 +380,7 @@ void setanimatevalue(int i, double value)
void doanimations(void)
{
for (int i = animates.Size() - 1; i >= 0; i--)
for (int i = animates.SSize() - 1; i >= 0; i--)
{
double a = getanimatevalue(i);
double const v = animates[i].vel * TICSPERFRAME;
@ -450,7 +450,7 @@ int getanimationindex(int animtype, sectortype* animtargetp)
j = -1;
int animtarget = sectindex(animtargetp);
for (i = animates.Size() - 1; i >= 0; i--)
for (i = animates.SSize() - 1; i >= 0; i--)
if (animtype == animates[i].type && animtarget == animates[i].target)
{
j = i;
@ -1141,7 +1141,7 @@ void operateactivators(int low, DDukePlayer* plr)
Cycler * p;
walltype* wal;
for (i = cyclers.Size() - 1; i >= 0; i--)
for (i = cyclers.SSize() - 1; i >= 0; i--)
{
p = &cyclers[i];

View file

@ -654,7 +654,7 @@ void DeleteNoSoundOwner(DSWActor* actor)
});
// also delete all ambients attached to this actor.
for (int i = ambients.Size() - 1; i >= 0; i--)
for (int i = ambients.SSize() - 1; i >= 0; i--)
{
auto amb = ambients[i];
if (amb->spot == actor)