[Scummvm-git-logs] scummvm master -> 8f597c1e4ce53bab19156054767c21b8b6898d59

dreammaster dreammaster at scummvm.org
Sun Apr 1 02:40:19 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8f597c1e4c XEEN: Fix loading character HPs that are negative


Commit: 8f597c1e4ce53bab19156054767c21b8b6898d59
    https://github.com/scummvm/scummvm/commit/8f597c1e4ce53bab19156054767c21b8b6898d59
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-31T20:40:17-04:00

Commit Message:
XEEN: Fix loading character HPs that are negative

Changed paths:
    engines/xeen/character.cpp


diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp
index 50ad2fe..85f0e53 100644
--- a/engines/xeen/character.cpp
+++ b/engines/xeen/character.cpp
@@ -237,8 +237,8 @@ void Character::synchronize(Common::Serializer &s) {
 
 	s.syncAsUint16LE(_townUnknown);
 	s.syncAsByte(_savedMazeId);
-	s.syncAsUint16LE(_currentHp);
-	s.syncAsUint16LE(_currentSp);
+	s.syncAsSint16LE(_currentHp);
+	s.syncAsSint16LE(_currentSp);
 	s.syncAsUint16LE(_birthYear);
 	s.syncAsUint32LE(_experience);
 	s.syncAsByte(_currentAdventuringSpell);





More information about the Scummvm-git-logs mailing list