Merge branch 'fix-ghost-skip-ezt-itemdata' into 'master'

Fix ghosts crash in Time Attack

See merge request KartKrew/Kart!1061
This commit is contained in:
James R 2023-03-18 11:07:00 +00:00
commit d22f1dabf0

View file

@ -1344,7 +1344,7 @@ void G_GhostTicker(void)
if (xziptic & EZT_SPRITE) if (xziptic & EZT_SPRITE)
g->mo->sprite = READUINT16(g->p); g->mo->sprite = READUINT16(g->p);
if (xziptic & EZT_ITEMDATA) if (xziptic & EZT_ITEMDATA)
g->p += 3; // itemtype, itemamount, bumpers g->p += 1 + 1 + 4; // itemtype, itemamount, health
if (xziptic & EZT_STATDATA) if (xziptic & EZT_STATDATA)
{ {
UINT8 skinid = READUINT8(g->p); UINT8 skinid = READUINT8(g->p);