mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 03:17:22 -04:00
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:
@@ -2518,7 +2518,7 @@ void daNPC_TK_c::executeResistanceDemo() {
|
||||
0x200, 0x10);
|
||||
shape_angle.x = -current.angle.x;
|
||||
|
||||
cLib_addCalcAngleS(¤t.angle.y, cLib_targetAngleY((Vec*)¤t, &posWithOffset), 8,
|
||||
cLib_addCalcAngleS(¤t.angle.y, cLib_targetAngleY(¤t.pos, &posWithOffset), 8,
|
||||
0x400, 0x10);
|
||||
shape_angle.y = current.angle.y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user