From 41bb5f2c3d1d1bbf3d9c0b71eeee0d71412191e2 Mon Sep 17 00:00:00 2001 From: scarf Date: Tue, 19 Mar 2024 13:31:12 +0900 Subject: [PATCH] fix: dead state persisting between worlds (#4368) reset dead state after loading player --- src/game.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game.cpp b/src/game.cpp index c48cc2cc870c..10a0b8752340 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2557,6 +2557,7 @@ bool game::load( const save_t &name ) // Now load up the master game data; factions (and more?) load_master(); u = avatar(); + u.recalc_hp(); u.set_save_id( name.decoded_name() ); u.name = name.decoded_name(); if( !read_from_file( playerpath + SAVE_EXTENSION, std::bind( &game::unserialize, this, _1 ) ) ) {