don't access uninitialized sf::Event

This commit is contained in:
2025-02-23 14:40:49 -06:00
parent 32e644b9f5
commit 6ff155434c

View File

@@ -2046,7 +2046,7 @@ void run_special(eSpecCtx which_mode, eSpecCtxType which_type, spec_num_t start_
if(replaying && has_next_action("step_through_exit")){
pop_next_action();
univ.node_step_through = false;
}else if(evt.type == sf::Event::KeyPressed && evt.key.code == sf::Keyboard::Escape){
}else if(!replaying && evt.type == sf::Event::KeyPressed && evt.key.code == sf::Keyboard::Escape){
record_action("step_through_exit", "");
univ.node_step_through = false;
}