G_GhostTicker/G_ReadMetalTic: type should default to MT_NULL, not -1

This way, if for some reason the ghost has no skin, nothing should spawn at all
This commit is contained in:
Monster Iestyn 2020-05-28 16:39:31 +01:00
parent 5542893548
commit 879a2bd20a
1 changed files with 2 additions and 2 deletions

View File

@ -764,7 +764,7 @@ void G_GhostTicker(void)
if (xziptic & EZT_THOKMASK)
{ // Let's only spawn ONE of these per frame, thanks.
mobj_t *mobj;
INT32 type = -1;
UINT32 type = MT_NULL;
if (g->mo->skin)
{
skin_t *skin = (skin_t *)g->mo->skin;
@ -1051,7 +1051,7 @@ void G_ReadMetalTic(mobj_t *metal)
if (xziptic & EZT_THOKMASK)
{ // Let's only spawn ONE of these per frame, thanks.
mobj_t *mobj;
INT32 type = -1;
UINT32 type = MT_NULL;
if (metal->skin)
{
skin_t *skin = (skin_t *)metal->skin;