aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/scenery.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-07-28 15:19:55 +0000
committerSven Hesse2009-07-28 15:19:55 +0000
commitf5e9aa67c495a64117cc9d30596a34fbe21ef1d5 (patch)
tree0accb0460a61769eafeeefed9b3f4ac275aa2258 /engines/gob/scenery.cpp
parentf832d0fc5692133bb3c38c1b19e87f315a8a80fc (diff)
downloadscummvm-rg350-f5e9aa67c495a64117cc9d30596a34fbe21ef1d5.tar.gz
scummvm-rg350-f5e9aa67c495a64117cc9d30596a34fbe21ef1d5.tar.bz2
scummvm-rg350-f5e9aa67c495a64117cc9d30596a34fbe21ef1d5.zip
Changing stuff around a bit so alignment requirements won't increase
svn-id: r42857
Diffstat (limited to 'engines/gob/scenery.cpp')
-rw-r--r--engines/gob/scenery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gob/scenery.cpp b/engines/gob/scenery.cpp
index 568835dd37..a6d6c06544 100644
--- a/engines/gob/scenery.cpp
+++ b/engines/gob/scenery.cpp
@@ -95,7 +95,7 @@ void Scenery::init() {
int16 Scenery::loadStatic(char search) {
int16 size;
- int16 *backsPtr;
+ byte *backsPtr;
int16 picsCount;
int16 resId;
int16 sceneryIndex;
@@ -108,7 +108,7 @@ int16 Scenery::loadStatic(char search) {
_vm->_game->_script->evalExpr(&sceneryIndex);
size = _vm->_game->_script->readInt16();
- backsPtr = (int16 *) (_vm->_game->_script->getData() + _vm->_game->_script->pos());
+ backsPtr = _vm->_game->_script->getData() + _vm->_game->_script->pos();
_vm->_game->_script->skip(size * 2);
picsCount = _vm->_game->_script->readInt16();
resId = _vm->_game->_script->readInt16();
@@ -162,7 +162,7 @@ int16 Scenery::loadStatic(char search) {
ptr->layers[i].planes = 0;
ptr->layers[i].backResId = (int16) READ_LE_UINT16(backsPtr);
- backsPtr++;
+ backsPtr += 2;
}
ptr->pieces = new PieceDesc*[picsCount];