WINTERMUTE: Transfer Point32s explicitly when saving/loading.

This commit is contained in:
Einar Johan Trøan Sømåen 2013-10-29 01:42:13 +01:00
parent 95d2ed1a9b
commit 538c5935f9
4 changed files with 4 additions and 4 deletions

View File

@ -255,7 +255,7 @@ bool AdSentence::persist(BasePersistenceManager *persistMgr) {
persistMgr->transfer(TMEMBER(_currentSkelAnim));
persistMgr->transfer(TMEMBER(_duration));
persistMgr->transferPtr(TMEMBER_PTR(_font));
persistMgr->transfer(TMEMBER(_pos));
persistMgr->transferPoint32(TMEMBER(_pos));
persistMgr->transferPtr(TMEMBER_PTR(_sound));
persistMgr->transferBool(TMEMBER(_soundStarted));
persistMgr->transfer(TMEMBER(_stances));

View File

@ -813,7 +813,7 @@ bool BasePersistenceManager::transferRect32(const char *name, Rect32 *val) {
//////////////////////////////////////////////////////////////////////////
// POINT
bool BasePersistenceManager::transfer(const char *name, Point32 *val) {
bool BasePersistenceManager::transferPoint32(const char *name, Point32 *val) {
if (_saving) {
_saveStream->writeSint32LE(val->x);
_saveStream->writeSint32LE(val->y);

View File

@ -81,7 +81,7 @@ public:
bool transferBool(const char *name, bool *val);
bool transferByte(const char *name, byte *val);
bool transferRect32(const char *name, Rect32 *val);
bool transfer(const char *name, Point32 *val);
bool transferPoint32(const char *name, Point32 *val);
bool transfer(const char *name, const char **val);
bool transfer(const char *name, char **val);
bool transfer(const char *name, Common::String *val);

View File

@ -1259,7 +1259,7 @@ bool UIWindow::persist(BasePersistenceManager *persistMgr) {
persistMgr->transferPtr(TMEMBER_PTR(_backInactive));
persistMgr->transferBool(TMEMBER(_clipContents));
persistMgr->transfer(TMEMBER(_dragFrom));
persistMgr->transferPoint32(TMEMBER(_dragFrom));
persistMgr->transferBool(TMEMBER(_dragging));
persistMgr->transferRect32(TMEMBER(_dragRect));
persistMgr->transferBool(TMEMBER(_fadeBackground));