Fixed crash when loading saved game with missing ACS module

This commit is contained in:
alexey.lysiuk 2017-12-10 13:24:16 +02:00
parent 1559d74c2c
commit a89bc23789

View file

@ -3655,6 +3655,12 @@ void DLevelScript::Serialize(FSerializer &arc)
if (arc.isReading())
{
activeBehavior = FBehavior::StaticGetModule(lib);
if (nullptr == activeBehavior)
{
I_Error("Could not find ACS module");
}
pc = activeBehavior->Ofs2PC(pcofs);
}
}