bug: enemie movement sometimes deref nullptr when calling get_pos()
fixed level gen
This commit is contained in:
@ -31,7 +31,7 @@ game_command file_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;
|
||||
|
Reference in New Issue
Block a user