From 05951921293a27a2f8934dc2212435aabb56395e Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 18 May 2017 21:51:24 +0300 Subject: [PATCH] [Server] Make GetFactionExpelledState() return a bool instead of an int --- apps/openmw-mp/Script/Functions/Factions.cpp | 2 +- apps/openmw-mp/Script/Functions/Factions.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/Factions.cpp b/apps/openmw-mp/Script/Functions/Factions.cpp index 807978397..a5e945a13 100644 --- a/apps/openmw-mp/Script/Functions/Factions.cpp +++ b/apps/openmw-mp/Script/Functions/Factions.cpp @@ -46,7 +46,7 @@ int FactionFunctions::GetFactionRank(unsigned short pid, unsigned int i) noexcep return player->factionChanges.factions.at(i).rank; } -int FactionFunctions::GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept +bool FactionFunctions::GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept { Player *player; GET_PLAYER(pid, player, 0); diff --git a/apps/openmw-mp/Script/Functions/Factions.hpp b/apps/openmw-mp/Script/Functions/Factions.hpp index b18d55213..7292594c2 100644 --- a/apps/openmw-mp/Script/Functions/Factions.hpp +++ b/apps/openmw-mp/Script/Functions/Factions.hpp @@ -22,7 +22,7 @@ public: static const char *GetFactionId(unsigned short pid, unsigned int i) noexcept; static int GetFactionRank(unsigned short pid, unsigned int i) noexcept; - static int GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept; + static bool GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept; static void SendFactionChanges(unsigned short pid) noexcept; private: