- fixed: args of non-actor mapthings were ignored.

This commit is contained in:
Christoph Oelckers 2015-04-07 08:51:21 +02:00
parent e75bdf86db
commit 6f5dbdefb0

View file

@ -4617,7 +4617,7 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
} }
// copy args to mapthing so that we have them in one place for the rest of this function // copy args to mapthing so that we have them in one place for the rest of this function
if (mentry->Special >= 0) if (mentry->Type != NULL && mentry->Special >= 0)
{ {
mthing->special = mentry->Special; mthing->special = mentry->Special;
memcpy(mthing->args, mentry->Args, sizeof(mthing->args)); memcpy(mthing->args, mentry->Args, sizeof(mthing->args));