diff --git a/source/games/duke/src/sectors.cpp b/source/games/duke/src/sectors.cpp index 1fcebbbfc..c3758f5fc 100644 --- a/source/games/duke/src/sectors.cpp +++ b/source/games/duke/src/sectors.cpp @@ -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]; diff --git a/source/games/sw/src/sounds.cpp b/source/games/sw/src/sounds.cpp index cc1838cad..615e062c5 100644 --- a/source/games/sw/src/sounds.cpp +++ b/source/games/sw/src/sounds.cpp @@ -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)