Skip to content

Commit d81297b

Browse files
authored
zEntDestructObj: SwapModel 100% match (#396)
1 parent 4f2f2a3 commit d81297b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SB/Game/zEntDestructObj.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ namespace
2828
RwMatrixCopyMacro(modelInst->Mat, ent->model->Mat);
2929

3030
modelInst->Flags &= 0xBBFC;
31-
modelInst->Flags |= (s16) (ent->model->Flags & 0x4403);
31+
modelInst->Flags |= (u16) (ent->model->Flags & 0x4403);
3232
ent->model = modelInst;
33-
iBoxForModelLocal((xBox*) &ent->bound.box, (xModelInstance *) modelInst);
33+
iBoxForModelLocal(&ent->bound.box.box, modelInst);
3434
zCollGeom_EntSetup((xEnt *) ent);
3535

3636
sfxDestroy = ent->sfx_destroy;

0 commit comments

Comments
 (0)