- fixed crash with FraggleScript in Nimrod MAP02.

This commit is contained in:
Christoph Oelckers 2018-12-07 20:15:02 +01:00
parent f17a90ef69
commit e70138a266

View file

@ -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;
}