diff --git a/engine/server/sv_init.c b/engine/server/sv_init.c index ab40a6a9b..66aa4f990 100644 --- a/engine/server/sv_init.c +++ b/engine/server/sv_init.c @@ -67,6 +67,23 @@ int SV_ModelIndex (char *name) return i; } +int SV_SafeModelIndex (char *name) +{ + int i; + + if (!name || !name[0]) + return 0; + + for (i=1 ; ibaseline.colormap = entnum; else svent->baseline.colormap = 0; //this would crash NQ. - if (progstype == PROG_H2) - svent->baseline.modelindex = SV_ModelIndex("");//"models/paladin.mdl"); - else - svent->baseline.modelindex = SV_ModelIndex("progs/player.mdl"); + + svent->baseline.modelindex = playermodel; } else {