From 5405dad069d00825e1b2e7e2b9bd3fc49c49bed3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Apr 2020 13:40:12 -0400 Subject: [PATCH] CWeaponMgr: Make use of size_t in IncrCount() Keeps this function consistent with the previous change. --- Runtime/Weapon/CWeaponMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Weapon/CWeaponMgr.cpp b/Runtime/Weapon/CWeaponMgr.cpp index f6d905b4d..28cfa89e0 100644 --- a/Runtime/Weapon/CWeaponMgr.cpp +++ b/Runtime/Weapon/CWeaponMgr.cpp @@ -27,7 +27,7 @@ void CWeaponMgr::IncrCount(TUniqueId uid, EWeaponType type) { if (GetIndex(uid) < 0) { Add(uid, type); } else { - x0_weapons[uid][u32(type)]++; + x0_weapons[uid][size_t(type)]++; } }