mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-12 16:18:01 +00:00
engine: server: use generic host pool for temporary string allocation in case of PhysicAPI
This commit is contained in:
parent
ab5a9eec53
commit
52bd923d9d
@ -3222,12 +3222,12 @@ string_t GAME_EXPORT SV_AllocString( const char *szValue )
|
|||||||
{
|
{
|
||||||
string_t i;
|
string_t i;
|
||||||
|
|
||||||
newString = Mem_Malloc( svgame.stringspool, SV_ProcessString( NULL, szValue ));
|
newString = Mem_Malloc( host.mempool, SV_ProcessString( NULL, szValue ));
|
||||||
|
|
||||||
SV_ProcessString( newString, szValue );
|
SV_ProcessString( newString, szValue );
|
||||||
i = svgame.physFuncs.pfnAllocString( newString );
|
i = svgame.physFuncs.pfnAllocString( newString );
|
||||||
|
|
||||||
Mem_Free( newString );
|
Mem_Free( host.mempool );
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user