diff options
author | aap <aap@papnet.eu> | 2021-01-23 12:40:23 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-23 12:40:23 +0100 |
commit | 20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f (patch) | |
tree | fa4adbfea0ee59098876151fcab206e71ad12ca5 /src/control/Script.h | |
parent | fix (diff) | |
download | re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.tar re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.tar.gz re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.tar.bz2 re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.tar.lz re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.tar.xz re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.tar.zst re3-20bcd4bd69c601cfccd6ec8b319f26fddbae9e9f.zip |
Diffstat (limited to '')
-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; } }; |