1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Few minor fixes

This commit is contained in:
GAMMACASE
2023-10-01 17:27:56 +03:00
parent 05a5907e05
commit 6fd990f46b
4 changed files with 5 additions and 4 deletions

View File

@ -111,8 +111,9 @@ struct bbox_t
Vector maxs; Vector maxs;
}; };
struct CEntityIndex class CEntityIndex
{ {
public:
CEntityIndex( int index ) CEntityIndex( int index )
{ {
_index = index; _index = index;

View File

@ -1347,7 +1347,7 @@ inline void Destruct( T* pMemory )
pMemory->~T(); pMemory->~T();
#ifdef _DEBUG #ifdef _DEBUG
memset( pMemory, 0xDD, sizeof(T) ); memset( (void*)pMemory, 0xDD, sizeof(T) );
#endif #endif
} }

View File

@ -16,9 +16,9 @@
#elif POSIX #elif POSIX
#include <ctype.h> #include <ctype.h>
#include <wchar.h> #include <wchar.h>
#include <math.h>
#endif #endif
#include <math.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -120,7 +120,7 @@ inline uint32 CUtlSymbolLarge_Hash( bool CASEINSENSITIVE, const char *pString, i
return ( CASEINSENSITIVE ? HashStringCaseless( pString ) : HashString( pString ) ); return ( CASEINSENSITIVE ? HashStringCaseless( pString ) : HashString( pString ) );
} }
typedef uint32 LargeSymbolTableHashDecoration_t; typedef uint64 LargeSymbolTableHashDecoration_t;
// The structure consists of the hash immediately followed by the string data // The structure consists of the hash immediately followed by the string data
struct CUtlSymbolTableLargeBaseTreeEntry_t struct CUtlSymbolTableLargeBaseTreeEntry_t