Lot of changes

This commit is contained in:
Ley0k committed 2016-08-13 18:32:13 +02:00
1 parent db1cfb675c
commit 3436b47544
43 files changed
+1249 -123

No files matched your search

+2 -2
View File
@@ -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--;