mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
don't crash if they gave us a dodgy model (md3s... hmm)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@719 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b6d8192406
commit
585dc4db55
1 changed files with 7 additions and 1 deletions
|
@ -277,9 +277,15 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
|
|||
#endif
|
||||
|
||||
|
||||
default:
|
||||
case 29:
|
||||
case 30:
|
||||
Mod_LoadBrushModel (mod, buf);
|
||||
break;
|
||||
|
||||
default:
|
||||
if (crash)
|
||||
SV_Error ("Mod_NumForName: %s: format not recognised", mod->name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return mod;
|
||||
|
|
Loading…
Reference in a new issue