From 0b4e6854f7ebae604aa05dd69a7586cb0a6af46f Mon Sep 17 00:00:00 2001 From: fgenesis Date: Tue, 15 Apr 2014 21:01:18 +0200 Subject: [PATCH] Fix lost health refill on save. The old HP (before health refill) ended up in the save file. Loading a save would therefore continue with the HP the player had before saving. --- Aquaria/Continuity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Aquaria/Continuity.cpp b/Aquaria/Continuity.cpp index 6928803..720b399 100644 --- a/Aquaria/Continuity.cpp +++ b/Aquaria/Continuity.cpp @@ -2350,6 +2350,8 @@ void Continuity::upgradeHealth() void Continuity::saveFile(int slot, Vector position, unsigned char *scrShotData, int scrShotWidth, int scrShotHeight) { + refreshAvatarData(dsq->game->avatar); + if (position.isZero()) { position = dsq->game->avatar->position;