fixed segmentation fault when sorting enemies

This commit is contained in:
2024-07-15 10:10:53 -04:00
parent 93f68e3969
commit be00e2ec0f
6 changed files with 21 additions and 11 deletions

View File

@ -31,7 +31,7 @@ game_command console_input::get_command() {
return (game_command)((tmp = get_direction(cmd)) ==
game_command_panic
? tmp : tmp - move_north +
? tmp : tmp +
(use ? apply_north : attack_north));
} else if (cmd == "yes") {
return game_command::enter;