(svn r1590) -Fix: [1107347] ban 1 crashes dedicated server. Dedicated server cannot ban itself :)

pull/155/head
darkvater 20 years ago
parent eaf4c8bd2e
commit e00fd30057

@ -304,7 +304,7 @@ DEF_CONSOLE_CMD(ConBan)
if (argc == 2) {
uint32 index = atoi(argv[1]);
if (index == NETWORK_SERVER_INDEX && !_network_dedicated) {
if (index == NETWORK_SERVER_INDEX) {
IConsolePrint(_iconsole_color_default, "Silly boy, you can not ban yourself!");
return NULL;
}

Loading…
Cancel
Save