Skip to content

Commit

Permalink
game: Remove extra conditions from scene change in game_state_dynamic…
Browse files Browse the repository at this point in the history
…_tick()

This prevents a crash in arena_dynamic_tick() afterwards.
  • Loading branch information
mrannanj committed Oct 8, 2024
1 parent 3f26656 commit 4dbe1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/game_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ void game_state_static_tick(game_state *gs, bool replay) {
// This function is called when the game speed requires it
void game_state_dynamic_tick(game_state *gs, bool replay) {
// We want to load another scene
if(gs->this_id != gs->next_id && (gs->next_wait_ticks <= 1 || !settings_get()->video.crossfade_on)) {
if(gs->this_id != gs->next_id) {
// If this is the end, set run to 0 so that engine knows to close here
if(gs->next_id == SCENE_NONE) {
DEBUG("Next ID is SCENE_NONE! bailing.");
Expand Down

0 comments on commit 4dbe1e8

Please sign in to comment.