diff options
Diffstat (limited to 'src/control/Script.h')
-rw-r--r-- | src/control/Script.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } }; |