Fix 'Load Game' behaving incorrectly when no save is present

This commit is contained in:
Alula 2021-06-28 07:27:36 +02:00
parent eeb290a6f3
commit 79a6c93060
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ impl SharedGameState {
}
pub fn start_new_game(&mut self, ctx: &mut Context) -> GameResult {
self.reset();
#[cfg(feature = "scripting")]
self.lua.reload_scripts(ctx)?;