From f4cc5e56842557abfff8db24635e2cf15d21fd7b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 9 Oct 2019 20:11:43 +1000 Subject: [PATCH] Fix position struct --- src/game/chr/chraicommands.c | 2 +- src/include/types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index 9309910e4..ddf9ccf7f 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -1813,7 +1813,7 @@ bool ai0045(void) u8 *cmd = g_Vars.ailist + g_Vars.aioffset; struct chrdata *chr = chrFindById(g_Vars.chrdata, cmd[2]); - if (chr && chr->pos && func0f0393b4(g_Vars.chrdata, &chr->pos->coord, &chr->pos->unk24)) { + if (chr && chr->pos && func0f0393b4(g_Vars.chrdata, &chr->pos->coord, &chr->pos->unk28)) { g_Vars.aioffset = chraiGoToLabel(g_Vars.ailist, g_Vars.aioffset, cmd[3]); } else { g_Vars.aioffset += 4; diff --git a/src/include/types.h b/src/include/types.h index ab855ebcd..d1abd17e2 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -17,12 +17,12 @@ struct position { u16 room; u32 unk04; struct coord coord; - u32 unk10; u32 unk14; u32 unk18; u32 unk1c; u32 unk20; u32 unk24; + u32 unk28; }; struct chrdata {