From 458ff8949a85bb7da5735375fad62cf732dae793 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 31 Jan 2020 21:29:45 -0500 Subject: [PATCH] IGameArea: Make Dock's reference count variable signed In all usage cases, this variable is used with functions that expect a signed value. This eliminates quite a few signed mismatch warnings. --- Runtime/World/IGameArea.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/World/IGameArea.hpp b/Runtime/World/IGameArea.hpp index 8d9256e03..2a4cce25a 100644 --- a/Runtime/World/IGameArea.hpp +++ b/Runtime/World/IGameArea.hpp @@ -25,14 +25,14 @@ public: }; private: - u32 x0_referenceCount = 0; + s32 x0_referenceCount = 0; std::vector x4_dockReferences; rstl::reserved_vector x14_planeVertices; bool x48_isReferenced = false; public: const rstl::reserved_vector& GetPlaneVertices() const { return x14_planeVertices; } - u32 GetReferenceCount() const { return x0_referenceCount; } + s32 GetReferenceCount() const { return x0_referenceCount; } const std::vector& GetDockRefs() const { return x4_dockReferences; } Dock(CInputStream& in, const zeus::CTransform& xf); TAreaId GetConnectedAreaId(s32 other) const;