Saved Games: Always store current sp even when at max

This should fix the issue of SP being set to 0 when reloading a game,
though existing saves will not be magically fixed.
This commit is contained in:
2017-04-11 17:32:46 -04:00
parent 3c6190c433
commit 45604a22b9

View File

@@ -1184,8 +1184,7 @@ void cPlayer::writeTo(std::ostream& file) const {
file << "SKILL " << int(p.first) << ' ' << p.second << '\n';
}
file << "HEALTH " << cur_health << '\n';
if(cur_sp != max_sp)
file << "MANA " << cur_sp << '\n';
file << "MANA " << cur_sp << '\n';
file << "EXPERIENCE " << experience << '\n';
file << "SKILLPTS " << skill_pts << '\n';
file << "LEVEL " << level << '\n';