port: read gbi command id correctly in gfxReplaceGbiCommands

This commit is contained in:
fgsfds committed 2023-08-13 21:09:04 +02:00
1 parent e0d4bf44b8
commit 358f788b61
1 file changed
+4
+4
View File
@@ -308,7 +308,11 @@ void gfxReplaceGbiCommands(Gfx *startgdl, Gfx *endgdl, s32 type)
Gfx *gdl = startgdl;
#ifdef PLATFORM_N64
while ((endgdl && gdl < endgdl) || (!endgdl && *(s8 *)gdl != G_ENDDL)) {
#else
while ((endgdl && gdl < endgdl) || (!endgdl && (s8)gdl->bytes[GFX_W0_BYTE(0)] != G_ENDDL)) {
#endif
Gfx *src = groups[type];
while (src->words.w0 != 0) {