aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/saveload.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/saveload.h b/scumm/saveload.h
index 5042befa06..e6120c6700 100644
--- a/scumm/saveload.h
+++ b/scumm/saveload.h
@@ -38,7 +38,7 @@
// current reality (many of our complex structs are non-POD; for an explanation of
// what POD means refer to http://www-cpd.fnal.gov/personal/wb/boost/ISOcxx/doc/POD.html)
-#define OFFS(type,item) (((int)(&((type*)42)->type::item))-42)
+#define OFFS(type,item) (((long)(&((type*)42)->type::item))-42)
#define SIZE(type,item) sizeof(((type*)42)->type::item)
// Any item that is still in use automatically gets a maxVersion equal to CURRENT_VER