Lot of changes

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

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--;