Warning if uiScript replace receives an unknown category.

This commit is contained in:
Andrei Drexler 2009-07-01 11:24:22 +00:00
parent eaacfaa7ee
commit 00b269f3a7

View file

@ -6405,6 +6405,8 @@ static void UI_RunMenuScript(char **args)
break; break;
} }
} }
if (i == replacementTypeCount)
Com_Printf(S_COLOR_YELLOW "WARNING: unrecognized replacement category, '%s'.\n", name2);
} }
} else if (Q_stricmp(name, "update") == 0) { } else if (Q_stricmp(name, "update") == 0) {
if (String_Parse(args, &name2)) { if (String_Parse(args, &name2)) {