From a89bc237897d91191a27b770b74b7cf6ace2ed6e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 10 Dec 2017 13:24:16 +0200 Subject: [PATCH] Fixed crash when loading saved game with missing ACS module --- src/p_acs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 3d93e7a0a5..22afac1b63 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -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); } }