mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-25 11:00:25 +01:00
Lot of changes
This commit is contained in:
1 parent
db1cfb675c
commit
3436b47544
43 files changed
+1249
-123
No files matched your search
@@ -221,7 +221,7 @@ void *Class::operator new( size_t s )
|
||||
if ( s == 0 )
|
||||
return 0;
|
||||
|
||||
s += sizeof( unsigned int );
|
||||
s += sizeof( size_t );
|
||||
|
||||
#ifdef GAME_DLL
|
||||
p = ( size_t * )gi.Malloc( s );
|
||||
@@ -247,7 +247,7 @@ void *Class::operator new( size_t s )
|
||||
|
||||
void Class::operator delete( void *ptr )
|
||||
{
|
||||
unsigned int *p = ( ( unsigned int * )ptr ) - 1;
|
||||
size_t *p = ( ( size_t * )ptr ) - 1;
|
||||
|
||||
totalmemallocated -= *p;
|
||||
numclassesallocated--;
|
||||
|
||||
Reference in new issue
Block a user