mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r227) -Fix: Sorry, broke console commands
This commit is contained in:
parent
b2d55a936f
commit
54bd5b3c1d
|
@ -704,9 +704,10 @@ bool IConsoleVarHookHandle(_iconsole_var * hook_var, byte type)
|
|||
case ICONSOLE_HOOK_ACCESS:
|
||||
proc = hook_var->hook_access;
|
||||
break;
|
||||
default: return true;
|
||||
}
|
||||
|
||||
if (proc == NULL) { return true;}
|
||||
|
||||
return proc(hook_var);
|
||||
}
|
||||
|
||||
|
@ -741,9 +742,10 @@ bool IConsoleCmdHookHandle(_iconsole_cmd * hook_cmd, byte type)
|
|||
case ICONSOLE_HOOK_ACCESS:
|
||||
proc = hook_cmd->hook_access;
|
||||
break;
|
||||
default: return true;
|
||||
}
|
||||
|
||||
if (proc == NULL) { return true;}
|
||||
|
||||
return proc(hook_cmd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue