diff options
author | Paul Gilbert | 2012-05-19 13:18:47 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-19 13:18:47 +1000 |
commit | bd064fe044beb4c38b48a1c111d922fdfcf73516 (patch) | |
tree | 3efaf4573c0edc49dc2727ae60189ca31ccfce99 /engines/tony/mpal | |
parent | 5d18a71045bd933fc2efc7ed6e60ef7763745cb7 (diff) | |
download | scummvm-rg350-bd064fe044beb4c38b48a1c111d922fdfcf73516.tar.gz scummvm-rg350-bd064fe044beb4c38b48a1c111d922fdfcf73516.tar.bz2 scummvm-rg350-bd064fe044beb4c38b48a1c111d922fdfcf73516.zip |
TONY: Endian fix in expression parser
Diffstat (limited to 'engines/tony/mpal')
-rw-r--r-- | engines/tony/mpal/expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tony/mpal/expr.cpp b/engines/tony/mpal/expr.cpp index 5e09e5dec6..7643c8bde3 100644 --- a/engines/tony/mpal/expr.cpp +++ b/engines/tony/mpal/expr.cpp @@ -301,7 +301,7 @@ const byte *ParseExpression(const byte *lpBuf, HGLOBAL *h) { lpBuf += 2; switch (cur->type) { case ELT_NUMBER: - cur->val.num = *(int *)lpBuf; + cur->val.num = (int32)READ_LE_UINT32(lpBuf); lpBuf += 4; break; |