From: havoc Date: Tue, 24 Apr 2007 17:08:54 +0000 (+0000) Subject: don't crash in Mod_BuildAliasSkinFromSkinFrame on dedicated servers X-Git-Tag: xonotic-v0.1.0preview~3257 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=944af47a3f467931c9102d745ad60d54c4c18c27;p=xonotic%2Fdarkplaces.git don't crash in Mod_BuildAliasSkinFromSkinFrame on dedicated servers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7181 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index b0f0af3b..bae22284 100644 --- a/model_alias.c +++ b/model_alias.c @@ -674,6 +674,8 @@ static void Mod_MDL_LoadFrames (unsigned char* datapointer, int inverts, int *ve static void Mod_BuildAliasSkinFromSkinFrame(texture_t *texture, skinframe_t *skinframe) { + if (cls.state == ca_dedicated) + return; // hack if (!skinframe) skinframe = R_SkinFrame_LoadMissing();