diff options
author | KUDr <kudr@openttd.org> | 2007-01-14 21:03:21 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-01-14 21:03:21 +0000 |
commit | f8a434e9fc808dcac88b851386df5348ebbbda43 (patch) | |
tree | 503a72c72c0782e2575e32241326c275442bc90d /src/oldloader.cpp | |
parent | b028d8c2011e1bcee7ccb651d748728299545463 (diff) | |
download | openttd-f8a434e9fc808dcac88b851386df5348ebbbda43.tar.xz |
(svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index ba5ed4228..58f82cf14 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -372,7 +372,7 @@ static void FixOldVehicles(void) * - OCL_CHUNK: load an other proc to load a part of the savegame, 'amount' times * - OCL_ASSERT: to check if we are really at the place we expect to be.. because old savegames are too binary to be sure ;) */ -#define OCL_SVAR(type, base, offset) { type, 1, NULL, (uint)offsetof(base, offset), NULL } +#define OCL_SVAR(type, base, offset) { type, 1, NULL, (uint)cpp_offsetof(base, offset), NULL } #define OCL_VAR(type, amount, pointer) { type, amount, pointer, 0, NULL } #define OCL_END() { OC_END, 0, NULL, 0, NULL } #define OCL_NULL(amount) { OC_NULL, amount, NULL, 0, NULL } |