From 6c12b2903a9d199a73fb89617b173e26241d096c Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 16 Feb 2016 22:03:55 +0100 Subject: [PATCH] Update submodules and use appropriate cast --- deps/protobuf | 2 +- src/Components/Modules/Logger.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/protobuf b/deps/protobuf index e35e2480..ee819ea7 160000 --- a/deps/protobuf +++ b/deps/protobuf @@ -1 +1 @@ -Subproject commit e35e24800fb8d694bdeea5fd63dc7d1b14d68723 +Subproject commit ee819ea724026396ea33ba4e5d70c020b022731c diff --git a/src/Components/Modules/Logger.cpp b/src/Components/Modules/Logger.cpp index 5357f582..81b4edb7 100644 --- a/src/Components/Modules/Logger.cpp +++ b/src/Components/Modules/Logger.cpp @@ -7,7 +7,7 @@ namespace Components bool Logger::IsConsoleReady() { - return (IsWindow(*(HWND*)0x64A3288) != FALSE || (Dedicated::IsDedicated() && !Flags::HasFlag("console"))); + return (IsWindow(*reinterpret_cast(0x64A3288)) != FALSE || (Dedicated::IsDedicated() && !Flags::HasFlag("console"))); } void Logger::Print(const char* message, ...)