mirror of https://github.com/sm64pc/sm64pc.git
3908ff3954
The segfault is hit while trying to render bhvCheckerboardElevatorGroup when the player first enters the stage. So here's some background: bhvCheckerboardElevatorGroup is the invisible parent object that defines where the two platforms will rotate around. It has a model, but it's never rendered in game. The entity only exists for a few frames before being removed from the scene. Here's the theory: Since it is only valid for a few frames, I believe the model gets deallocated after removal. Since changing the camera precision makes the camera end up in a slightly different spot, it could be trying to render the object when precision is set to 3 but not to 1. Here's the solution: Adding cur_obj_hide() to the start of bhv_checkerboard_elevator_group_init() prevents the crash fixes #437 |
||
---|---|---|
.. | ||
behavior_script.c | ||
behavior_script.h | ||
geo_layout.c | ||
geo_layout.h | ||
graph_node.c | ||
graph_node.h | ||
graph_node_manager.c | ||
level_script.c | ||
level_script.h | ||
math_util.c | ||
math_util.h | ||
surface_collision.c | ||
surface_collision.h | ||
surface_load.c | ||
surface_load.h |