Rename _countof to sizeOfArray (#921)

This commit is contained in:
Christian Semmler
2024-05-14 10:35:22 -04:00
committed by GitHub
parent 95ed90aacb
commit e32e06321a
20 changed files with 89 additions and 89 deletions

View File

@@ -492,7 +492,7 @@ void Isle::Enable(MxBool p_enable)
for (MxU32 i = 0; i < 5; i++) {
MxS32 r = rand() % 5;
for (MxU32 j = 0; j < _countof(locations); j++) {
for (MxU32 j = 0; j < sizeOfArray(locations); j++) {
if (locations[j] != 0 && r-- == 0) {
AnimationManager()->AddExtra(locations[j], TRUE);
locations[j] = 0;