mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Lot of changes
This commit is contained in:
parent
db1cfb675c
commit
3436b47544
43 changed files with 1249 additions and 123 deletions
|
@ -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--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue