summaryrefslogtreecommitdiffstats
path: root/src/core/Pools.cpp
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-04-20 19:50:12 +0200
committerGitHub <noreply@github.com>2020-04-20 19:50:12 +0200
commit7794cca429163429e9a4b216d717002ae1034040 (patch)
tree10f23f0a163b2a7b3011b5570eb9af93010a25a1 /src/core/Pools.cpp
parentupdated librw again (diff)
parentTry to build with mingw (diff)
downloadre3-7794cca429163429e9a4b216d717002ae1034040.tar
re3-7794cca429163429e9a4b216d717002ae1034040.tar.gz
re3-7794cca429163429e9a4b216d717002ae1034040.tar.bz2
re3-7794cca429163429e9a4b216d717002ae1034040.tar.lz
re3-7794cca429163429e9a4b216d717002ae1034040.tar.xz
re3-7794cca429163429e9a4b216d717002ae1034040.tar.zst
re3-7794cca429163429e9a4b216d717002ae1034040.zip
Diffstat (limited to 'src/core/Pools.cpp')
-rw-r--r--src/core/Pools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Pools.cpp b/src/core/Pools.cpp
index fb64c551..4f4588da 100644
--- a/src/core/Pools.cpp
+++ b/src/core/Pools.cpp
@@ -110,7 +110,7 @@ INITSAVEBUF
CStreaming::LoadAllRequestedModels(false);
int32 slot = ReadSaveBuf<int32>(buf);
CVehicle* pVehicle;
- char* vbuf = new char[max(sizeof(CAutomobile), sizeof(CBoat))];
+ char* vbuf = new char[Max(sizeof(CAutomobile), sizeof(CBoat))];
if (type == VEHICLE_TYPE_BOAT) {
memcpy(vbuf, buf, sizeof(CBoat));
SkipSaveBuf(buf, sizeof(CBoat));