From 3081c362c625f8320dfd1ff9668df4b621c42b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Sun, 29 May 2022 20:53:32 +0200 Subject: [PATCH] SWORD25: Fixed warning - restored to previous code --- engines/sword25/kernel/objectregistry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h index 772a3d0ba2d..e6bbd2f1b42 100644 --- a/engines/sword25/kernel/objectregistry.h +++ b/engines/sword25/kernel/objectregistry.h @@ -134,7 +134,7 @@ protected: }; struct ClassPointer_Hash { uint operator()(const T *x) const { - return (uint)(x - (const T *)0); + return *(uint *)&x; } };