diff options
author | upthorn | 2012-07-09 04:25:08 -0700 |
---|---|---|
committer | Alyssa Milburn | 2012-08-20 21:15:46 +0200 |
commit | f34924bc3940ff1f9972ed4920feb7e5708f3099 (patch) | |
tree | 61b2f9d930fb925c3222761af48b08edcc3b4985 /engines/sword25 | |
parent | b1af75f2c38e1997577599308f75ee0d1299b13e (diff) | |
download | scummvm-rg350-f34924bc3940ff1f9972ed4920feb7e5708f3099.tar.gz scummvm-rg350-f34924bc3940ff1f9972ed4920feb7e5708f3099.tar.bz2 scummvm-rg350-f34924bc3940ff1f9972ed4920feb7e5708f3099.zip |
SWORD25: Fix loading savegames on 64-bit archs.
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/util/pluto/pluto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/util/pluto/pluto.cpp b/engines/sword25/util/pluto/pluto.cpp index d645e5ed2a..b7f5e30340 100644 --- a/engines/sword25/util/pluto/pluto.cpp +++ b/engines/sword25/util/pluto/pluto.cpp @@ -895,10 +895,10 @@ static void unpersistnumber(UnpersistInfo *upi) static void unpersiststring(UnpersistInfo *upi) { /* perms reftbl sptbl ref */ - int length; + size_t length; char* string; lua_checkstack(upi->L, 1); - verify(LIF(Z,read)(&upi->zio, &length, sizeof(int)) == 0); + verify(LIF(Z,read)(&upi->zio, &length, sizeof(size_t)) == 0); string = pdep_newvector(upi->L, length, char); verify(LIF(Z,read)(&upi->zio, string, length) == 0); lua_pushlstring(upi->L, string, length); |