forked from metin-server/m2dev-client-src
x64 crashes fixed
This commit is contained in:
@@ -9,8 +9,8 @@ public:
|
||||
TAbstractSingleton()
|
||||
{
|
||||
assert(!ms_singleton);
|
||||
int offset = (int) (T*) 1 - (int) (CSingleton <T>*) (T*) 1;
|
||||
ms_singleton = (T*) ((int) this + offset);
|
||||
intptr_t offset = (intptr_t) (T*) 1 - (intptr_t) (CSingleton <T>*) (T*) 1;
|
||||
ms_singleton = (T*) ((intptr_t) this + offset);
|
||||
}
|
||||
|
||||
virtual ~TAbstractSingleton()
|
||||
|
||||
Reference in New Issue
Block a user