- fixed DACSThinker did not save its LastScript member.

This was probably responsible for some weird behavior recently, but with the addition of the OF_Transient flag this outright crashed because it left NULL pointers on reload in places where they weren't checked for.
This commit is contained in:
Christoph Oelckers 2016-10-24 22:22:47 +02:00
parent 5ba5da0dcc
commit 93ec6eb92e

View file

@ -2907,7 +2907,8 @@ FSerializer &Serialize(FSerializer &arc, const char *key, SavingRunningscript &r
void DACSThinker::Serialize(FSerializer &arc)
{
Super::Serialize(arc);
arc("scripts", Scripts);
arc("scripts", Scripts)
("lastscript", LastScript);
if (arc.isWriting())
{