Fix d_a_obj_stone bound crashing due to accessing a field improperly

Different vtable layout on mwerks made this direct pointer cast not work. access the field instead.

Also I went searching if there's any other cases of this bug, didn't find any but did find something else to clean up.
This commit is contained in:
PJB3005
2026-03-31 03:17:02 +02:00
parent 0678c31c39
commit 63a2c8db9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2518,7 +2518,7 @@ void daNPC_TK_c::executeResistanceDemo() {
0x200, 0x10);
shape_angle.x = -current.angle.x;
cLib_addCalcAngleS(&current.angle.y, cLib_targetAngleY((Vec*)&current, &posWithOffset), 8,
cLib_addCalcAngleS(&current.angle.y, cLib_targetAngleY(&current.pos, &posWithOffset), 8,
0x400, 0x10);
shape_angle.y = current.angle.y;