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

This commit is contained in:
darkvater 2005-01-22 18:51:09 +00:00
parent c0a0d1bb22
commit b49547b2b5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}