From b27769fdb5b2d1810cbdcee7070ba4409c23a8b5 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 10 Feb 2024 01:21:29 +0100 Subject: [PATCH] Tier1: use the Max defined in platform headers This one is the preferred Max as per Valve Source. --- r5dev/public/tier1/utlmemory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/public/tier1/utlmemory.h b/r5dev/public/tier1/utlmemory.h index 3ae56f3b..8947f3d5 100644 --- a/r5dev/public/tier1/utlmemory.h +++ b/r5dev/public/tier1/utlmemory.h @@ -359,7 +359,7 @@ public: // Makes sure we've got at least this much memory void EnsureCapacity(ssize_t num) { - size_t nSize = sizeof(T) * MAX(num, Count()); + size_t nSize = sizeof(T) * Max(num, Count()); ReAlloc(nSize); }