diff options
Diffstat (limited to 'src/game/g_utils.c')
-rw-r--r-- | src/game/g_utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c index 3a4bd3f4..c11df5ba 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -479,6 +479,15 @@ qboolean G_EntitiesFree( void ) } +char *G_CopyString( const char *str ) +{ + size_t size = strlen( str ) + 1; + char *cp = BG_Alloc( size ); + memcpy( cp, str, size ); + return cp; +} + + /* ================= G_FreeEntity |