From 0b8d0224d1fe29be4a4799ba06cda31576a82d1d Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 1 Feb 2017 13:44:25 +0800 Subject: [PATCH] [Server] Change type in second argument in SetConsoleAllow to "bool" --- apps/openmw-mp/Script/Functions/GUI.cpp | 2 +- apps/openmw-mp/Script/Functions/GUI.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/GUI.cpp b/apps/openmw-mp/Script/Functions/GUI.cpp index 49863d79b..0fe3908b2 100644 --- a/apps/openmw-mp/Script/Functions/GUI.cpp +++ b/apps/openmw-mp/Script/Functions/GUI.cpp @@ -69,7 +69,7 @@ void GUIFunctions::SetMapVisibilityAll(unsigned short targetPID, unsigned short LOG_MESSAGE(Log::LOG_WARN, "stub"); } -void GUIFunctions::SetConsoleAllow(unsigned short pid, char state) +void GUIFunctions::SetConsoleAllow(unsigned short pid, bool state) { Player *player; GET_PLAYER(pid, player,); diff --git a/apps/openmw-mp/Script/Functions/GUI.hpp b/apps/openmw-mp/Script/Functions/GUI.hpp index e75affa21..5cdb4a51d 100644 --- a/apps/openmw-mp/Script/Functions/GUI.hpp +++ b/apps/openmw-mp/Script/Functions/GUI.hpp @@ -29,7 +29,7 @@ public: static void SetMapVisibility(unsigned short targetPID, unsigned short affectedPID, unsigned short state) noexcept; static void SetMapVisibilityAll(unsigned short targetPID, unsigned short state) noexcept; - static void SetConsoleAllow(unsigned short pid, char state); + static void SetConsoleAllow(unsigned short pid, bool state); }; #endif //OPENMW_GUI_HPP