mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-23 08:21:23 +00:00
activated the state pointer serializer.
This commit is contained in:
parent
60c44d74ca
commit
e1ae2a091e
1 changed files with 1 additions and 3 deletions
|
@ -171,7 +171,6 @@ template<> FSerializer &Serialize(FSerializer &arc, const char *key, PClassActor
|
|||
|
||||
FSerializer &Serialize(FSerializer &arc, const char *key, FState *&state, FState **def, bool *retcode)
|
||||
{
|
||||
#if 0
|
||||
if (retcode) *retcode = false;
|
||||
if (arc.isWriting())
|
||||
{
|
||||
|
@ -222,7 +221,7 @@ FSerializer &Serialize(FSerializer &arc, const char *key, FState *&state, FState
|
|||
if (cls.IsString() && ndx.IsUint())
|
||||
{
|
||||
PClassActor *clas = PClass::FindActor(UnicodeToString(cls.GetString()));
|
||||
if (clas && ndx.GetUint() < (unsigned)clas->GetStateCount())
|
||||
if (clas && ndx.GetUint() < (unsigned)clas->ActorInfo()->NumOwnedStates)
|
||||
{
|
||||
state = clas->GetStates() + ndx.GetUint();
|
||||
}
|
||||
|
@ -248,7 +247,6 @@ FSerializer &Serialize(FSerializer &arc, const char *key, FState *&state, FState
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return arc;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue