diff options
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/kernel/objectregistry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h index 3a27ba4942..97fe19c93d 100644 --- a/engines/sword25/kernel/objectregistry.h +++ b/engines/sword25/kernel/objectregistry.h @@ -137,7 +137,7 @@ protected: }; struct ClassPointer_Hash { uint operator()(const T *x) const { - return *(uint *)&x; + return (uint)(x - (const T *)0); } }; |