Skip to content

Commit

Permalink
fix: dead state persisting between worlds (#4368)
Browse files Browse the repository at this point in the history
reset dead state after loading player
  • Loading branch information
scarf005 authored Mar 19, 2024
1 parent 255c444 commit 41bb5f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) ) {
Expand Down

0 comments on commit 41bb5f2

Please sign in to comment.