mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +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())
|
if (arc.isReading())
|
||||||
{
|
{
|
||||||
activeBehavior = FBehavior::StaticGetModule(lib);
|
activeBehavior = FBehavior::StaticGetModule(lib);
|
||||||
|
|
||||||
|
if (nullptr == activeBehavior)
|
||||||
|
{
|
||||||
|
I_Error("Could not find ACS module");
|
||||||
|
}
|
||||||
|
|
||||||
pc = activeBehavior->Ofs2PC(pcofs);
|
pc = activeBehavior->Ofs2PC(pcofs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue