Fix 'Load Game' behaving incorrectly when no save is present
This commit is contained in:
parent
eeb290a6f3
commit
79a6c93060
|
@ -291,6 +291,7 @@ impl SharedGameState {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn start_new_game(&mut self, ctx: &mut Context) -> GameResult {
|
pub fn start_new_game(&mut self, ctx: &mut Context) -> GameResult {
|
||||||
|
self.reset();
|
||||||
#[cfg(feature = "scripting")]
|
#[cfg(feature = "scripting")]
|
||||||
self.lua.reload_scripts(ctx)?;
|
self.lua.reload_scripts(ctx)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue