Skip to content

Commit

Permalink
Fix: dungeon data is lost on save
Browse files Browse the repository at this point in the history
  • Loading branch information
nightblade9 committed Dec 19, 2024
1 parent ac74c6c commit d9018af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/TextBlade.ConsoleRunner/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void SetLocation(Location location)
{
Location.CurrentSaveData = _saveData;

if (location.LocationId == _saveData.CurrentLocationId)
if (location.LocationId == _saveData.LocationSpecificDataLocationId)
{
location.SetStateBasedOnCustomSaveData(_saveData.LocationSpecificData);
}
Expand Down

0 comments on commit d9018af

Please sign in to comment.