mirror of https://github.com/OpenTTD/OpenTTD
(svn r1590) -Fix: [1107347] ban 1 crashes dedicated server. Dedicated server cannot ban itself :)
parent
c0a0d1bb22
commit
b49547b2b5
|
@ -304,7 +304,7 @@ DEF_CONSOLE_CMD(ConBan)
|
||||||
|
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
uint32 index = atoi(argv[1]);
|
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!");
|
IConsolePrint(_iconsole_color_default, "Silly boy, you can not ban yourself!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue