From 7a64e5f33f95c00a7e60df0a1b12bf682b687c8a Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 24 Apr 2018 20:34:36 +1000 Subject: [PATCH] biscuit didn't copy my code correctly :cry: --- src/servers/sapphire_zone/Actor/Player.cpp | 3 ++- src/servers/sapphire_zone/Script/ScriptLoader.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/servers/sapphire_zone/Actor/Player.cpp b/src/servers/sapphire_zone/Actor/Player.cpp index 1e72fcb3..ad12df0c 100644 --- a/src/servers/sapphire_zone/Actor/Player.cpp +++ b/src/servers/sapphire_zone/Actor/Player.cpp @@ -192,9 +192,10 @@ Core::Common::OnlineStatus Core::Entity::Player::getOnlineStatus() // todo: also check that the status can actually be set here, otherwise we need to ignore it (and ban the player obv) statusDisplayOrder = pOnlineStatus->priority; applicableStatus = i; - return static_cast< OnlineStatus >( applicableStatus ); } } + + return static_cast< OnlineStatus >( applicableStatus ); } void Core::Entity::Player::setOnlineStatusMask( uint64_t status ) diff --git a/src/servers/sapphire_zone/Script/ScriptLoader.h b/src/servers/sapphire_zone/Script/ScriptLoader.h index edf68d32..739b9078 100644 --- a/src/servers/sapphire_zone/Script/ScriptLoader.h +++ b/src/servers/sapphire_zone/Script/ScriptLoader.h @@ -12,10 +12,10 @@ #define WIN32_LEAN_AND_MEAN #include -typedef HMODULE ModuleHandle; +using ModuleHandle = HMODULE; #else #include -typedef void* ModuleHandle; +using ModuleHandle = void*; #endif namespace Core {