From 97b0539ef765399dc6520c8d7d813997d6715bf3 Mon Sep 17 00:00:00 2001 From: James Dansereau <106631954+jkdansereau@users.noreply.github.com> Date: Wed, 2 Sep 2026 21:52:57 -0400 Subject: [PATCH] linux-build: cast chrflags->Model in vtxstore modelGetNodeRwData call GCC 14 hard-errors enum(CHRFLAG)->pointer as 'incompatible type for argument' with no controlling warning flag (not downgraded by -fpermissive / -Wno-error=int-conversion). Line 157 of the same WIP-decomp function already casts the identical (Model*)var_v0->chrflags expression; match it on line 162. Codegen-identical. --- src/game/vtxstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/vtxstore.c b/src/game/vtxstore.c index fca37a65..f3052be0 100644 --- a/src/game/vtxstore.c +++ b/src/game/vtxstore.c @@ -159,7 +159,7 @@ void sub_GAME_7F09BAC4(s32 find, s32 replacement) { while (var_a1 != NULL) { val = var_a1->Opcode & 0xFF; if (val == 0x18) { - temp_v0_2 = modelGetNodeRwData(var_v0->chrflags, var_a1); + temp_v0_2 = modelGetNodeRwData((Model*)var_v0->chrflags, var_a1); if (find == *temp_v0_2) { *temp_v0_2 = replacement; }