diff --git a/apps/openmw-mp/Script/Functions/World.cpp b/apps/openmw-mp/Script/Functions/World.cpp index b33ba6a37..82d79833b 100644 --- a/apps/openmw-mp/Script/Functions/World.cpp +++ b/apps/openmw-mp/Script/Functions/World.cpp @@ -30,7 +30,7 @@ unsigned int WorldFunctions::GetObjectChangesSize() noexcept return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.count; } -unsigned int WorldFunctions::GetLastEventAction() noexcept +unsigned char WorldFunctions::GetLastEventAction() noexcept { return mwmp::Networking::getPtr()->getLastEvent()->action; } @@ -157,7 +157,7 @@ void WorldFunctions::SetScriptEventCell(const char* cellDescription) noexcept } } -void WorldFunctions::SetScriptEventAction(int action) noexcept +void WorldFunctions::SetScriptEventAction(unsigned char action) noexcept { scriptEvent.action = action; } diff --git a/apps/openmw-mp/Script/Functions/World.hpp b/apps/openmw-mp/Script/Functions/World.hpp index 30d196b07..749e48ef7 100644 --- a/apps/openmw-mp/Script/Functions/World.hpp +++ b/apps/openmw-mp/Script/Functions/World.hpp @@ -68,7 +68,7 @@ public: static void InitScriptEvent(unsigned short pid) noexcept; static unsigned int GetObjectChangesSize() noexcept; - static unsigned int GetLastEventAction() noexcept; + static unsigned char GetLastEventAction() noexcept; static const char *GetObjectRefId(unsigned int i) noexcept; static int GetObjectRefNumIndex(unsigned int i) noexcept; @@ -92,7 +92,7 @@ public: static int GetContainerItemActionCount(unsigned int objectIndex, unsigned int itemIndex) noexcept; static void SetScriptEventCell(const char* cellDescription) noexcept; - static void SetScriptEventAction(int action) noexcept; + static void SetScriptEventAction(unsigned char action) noexcept; static void SetObjectRefId(const char* refId) noexcept; static void SetObjectRefNumIndex(int refNumIndex) noexcept;