mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
Fixed crash when loading saved game with missing ACS module
This commit is contained in:
parent
1559d74c2c
commit
a89bc23789
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue