- Fixed: The three-argument version of AActor::FindState() initialized a

two-entry array for passing to the main FindState() routine, but did
  not actually pass it, passing the original primary label instead.


SVN r1261 (trunk)
This commit is contained in:
Randy Heit 2008-10-14 01:56:28 +00:00
parent 86e650207d
commit 8d4912f4af
3 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,7 @@
October 13, 2008
- Fixed: The three-argument version of AActor::FindState() initialized a
two-entry array for passing to the main FindState() routine, but did
not actually pass it, passing the original primary label instead.
- Fixed: SDL builds did not shutdown the sound system at exit.
- Fixed: ThingCountSector and ThingCountNameSector did not remove enough
entries from the stack, and did not put the result in the right slot.

View file

@ -793,8 +793,8 @@ public:
FState *FindState (FName label, FName sublabel, bool exact = false) const
{
FName names[]={label, sublabel};
return GetClass()->ActorInfo->FindState(2, &label, exact);
FName names[] = { label, sublabel };
return GetClass()->ActorInfo->FindState(2, names, exact);
}