From: lordhavoc Date: Mon, 18 Feb 2002 04:57:58 +0000 (+0000) Subject: fixed dedicated erroring on startup X-Git-Tag: RELEASE_0_2_0_RC1~637 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=96b8df574ab1a9c2f08f6d8896e0e20635caa84d;p=xonotic%2Fdarkplaces.git fixed dedicated erroring on startup git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1533 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index 03da5182..50390ce9 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -263,6 +263,8 @@ static gltexture_t *R_FindTexture (gltexturepool_t *pool, char *identifier) rtexturepool_t *R_AllocTexturePool(void) { gltexturepool_t *pool; + if (texturemempool == NULL) + return NULL; pool = Mem_Alloc(texturemempool, sizeof(gltexturepool_t)); if (pool == NULL) return NULL;