aboutsummaryrefslogtreecommitdiff
path: root/engines/tony
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-14 20:20:58 +1000
committerPaul Gilbert2012-05-14 20:22:51 +1000
commit8f4694a80c92b20d76a69c46dc43d1a990ec82c6 (patch)
tree36fa81d55016ca0c4296abbfa15533f9687f5b7a /engines/tony
parent4bf61b2f02bc933f66588332de37e1fdb996468b (diff)
downloadscummvm-rg350-8f4694a80c92b20d76a69c46dc43d1a990ec82c6.tar.gz
scummvm-rg350-8f4694a80c92b20d76a69c46dc43d1a990ec82c6.tar.bz2
scummvm-rg350-8f4694a80c92b20d76a69c46dc43d1a990ec82c6.zip
TONY: Fixed suspicious casting
Diffstat (limited to 'engines/tony')
-rw-r--r--engines/tony/custom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/custom.cpp b/engines/tony/custom.cpp
index c84aa63edb..0392fc409d 100644
--- a/engines/tony/custom.cpp
+++ b/engines/tony/custom.cpp
@@ -1326,8 +1326,8 @@ DECLARE_CUSTOM_FUNCTION(SyncScrollLocation)(CORO_PARAM, uint32 nX, uint32 nY, ui
CORO_BEGIN_CODE(_ctx);
// Prende le coordinate di quanto scrollare
- _ctx->lx=*((int*)&nX);
- _ctx->ly=*((int*)&nY);
+ _ctx->lx = (int32)nX;
+ _ctx->ly = (int32)nY;
_ctx->dimx = _ctx->lx;
_ctx->dimy = _ctx->ly;
if (_ctx->lx < 0) _ctx->dimx = -_ctx->lx;