From 20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f Mon Sep 17 00:00:00 2001 From: aap Date: Sat, 23 Jan 2021 12:40:23 +0100 Subject: colstore done --- src/control/Script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control/Script.h') diff --git a/src/control/Script.h b/src/control/Script.h index c30768b3..fa8a64cd 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -485,7 +485,7 @@ public: static void SetObjectiveForAllPedsInCollective(int, eObjective); #endif - bool IsFortStauntonDestroyed() { return *(int32*)&ScriptSpace[FSDestroyedFlag] == 1; } + static bool IsFortStauntonDestroyed() { return FSDestroyedFlag && *(int32*)&ScriptSpace[FSDestroyedFlag] == 1; } }; -- cgit v1.2.3