mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
allow array dynamically to make VC happy
svn-id: r6107
This commit is contained in:
parent
702de7424c
commit
7cb69f7fa2
@ -848,17 +848,21 @@ void Scumm::playActorSounds()
|
||||
void Scumm::processActors()
|
||||
{
|
||||
int i;
|
||||
Actor *actors[NUM_ACTORS], *a, **ac, **ac2, *tmp, **end;
|
||||
Actor **actors, *a, **ac, **ac2, *tmp, **end;
|
||||
int numactors = 0;
|
||||
|
||||
actors = new Actor*[NUM_ACTORS];
|
||||
|
||||
// Make a list of all actors in this room
|
||||
for (i = 1; i < NUM_ACTORS; i++) {
|
||||
a = derefActor(i);
|
||||
if (a->isInCurrentRoom())
|
||||
actors[numactors++] = a;
|
||||
}
|
||||
if (!numactors)
|
||||
if (!numactors) {
|
||||
delete [] actors;
|
||||
return;
|
||||
}
|
||||
|
||||
end = actors + numactors;
|
||||
|
||||
@ -883,6 +887,8 @@ void Scumm::processActors()
|
||||
CHECK_HEAP a->animateCostume();
|
||||
}
|
||||
}
|
||||
|
||||
delete [] actors;
|
||||
}
|
||||
|
||||
void Actor::drawActorCostume()
|
||||
|
Loading…
Reference in New Issue
Block a user