Tier1: use the Max defined in platform headers

This one is the preferred Max as per Valve Source.
This commit is contained in:
Kawe Mazidjatari 2024-02-10 01:21:29 +01:00
parent 24f41ef6c7
commit 35f684f9ac

View File

@ -359,7 +359,7 @@ public:
// Makes sure we've got at least this much memory // Makes sure we've got at least this much memory
void EnsureCapacity(ssize_t num) void EnsureCapacity(ssize_t num)
{ {
size_t nSize = sizeof(T) * MAX(num, Count()); size_t nSize = sizeof(T) * Max(num, Count());
ReAlloc(nSize); ReAlloc(nSize);
} }