From e70138a26680bafe21871aebc7a99391bc4a3cc4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 7 Dec 2018 20:15:02 +0100 Subject: [PATCH] - fixed crash with FraggleScript in Nimrod MAP02. --- src/fragglescript/t_variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fragglescript/t_variable.cpp b/src/fragglescript/t_variable.cpp index 6ece4f22ab..d38e621200 100644 --- a/src/fragglescript/t_variable.cpp +++ b/src/fragglescript/t_variable.cpp @@ -148,7 +148,7 @@ AActor* actorvalue(const svalue_t &svalue) return NULL; } // Inventory items in the player's inventory have to be considered non-present. - if (svalue.value.mobj == NULL || !svalue.value.mobj->IsMapActor()) + if (SpawnedThings[intval] == nullptr || !SpawnedThings[intval]->IsMapActor()) { return NULL; }