aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-09-25 14:41:52 +0000
committerTorbjörn Andersson2005-09-25 14:41:52 +0000
commitda65bc328bdb1eedcf156dfb50295d1ce757d7a9 (patch)
tree72c4783dd045966b5694b3ff9688f7474e7b891b /saga
parentd795b8a71446e1bbfe1c41521f04f232e28d5c15 (diff)
downloadscummvm-rg350-da65bc328bdb1eedcf156dfb50295d1ce757d7a9.tar.gz
scummvm-rg350-da65bc328bdb1eedcf156dfb50295d1ce757d7a9.tar.bz2
scummvm-rg350-da65bc328bdb1eedcf156dfb50295d1ce757d7a9.zip
Use the correct function for reading signed data. (I should have known
there was one.) svn-id: r18880
Diffstat (limited to 'saga')
-rw-r--r--saga/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp
index 01f28eaf77..1caf70d601 100644
--- a/saga/animation.cpp
+++ b/saga/animation.cpp
@@ -61,8 +61,8 @@ void Anim::loadCutawayList(const byte *resourcePointer, size_t resourceLength) {
for (int i = 0; i < _cutawayListLength; i++) {
_cutawayList[i].backgroundResourceId = cutawayS.readUint16LE();
_cutawayList[i].animResourceId = cutawayS.readUint16LE();
- _cutawayList[i].cycles = (int16)cutawayS.readUint16LE();
- _cutawayList[i].frameRate = (int16)cutawayS.readUint16LE();
+ _cutawayList[i].cycles = cutawayS.readSint16LE();
+ _cutawayList[i].frameRate = cutawayS.readSint16LE();
}
}