mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
CAMERA_MODE_NONE crash fix (#278)
This commit is contained in:
parent
4e293712fd
commit
1fd2ab86c6
1 changed files with 3 additions and 1 deletions
|
@ -2912,7 +2912,9 @@ void set_camera_mode(struct Camera *c, s16 mode, s16 frames) {
|
|||
vec3f_copy(end->pos, c->pos);
|
||||
vec3f_sub(end->pos, sMarioCamState->pos);
|
||||
|
||||
sAreaYaw = sModeTransitions[sModeInfo.newMode](c, end->focus, end->pos);
|
||||
if (sModeInfo.newMode != CAMERA_MODE_NONE) {
|
||||
sAreaYaw = sModeTransitions[sModeInfo.newMode](c, end->focus, end->pos);
|
||||
}
|
||||
|
||||
// End was updated by sModeTransitions
|
||||
vec3f_sub(end->focus, sMarioCamState->pos);
|
||||
|
|
Loading…
Reference in a new issue