summaryrefslogtreecommitdiffstats
path: root/src/render/WaterCannon.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-22 17:47:14 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-22 17:47:14 +0100
commit861506d048b7c4370f066e62233448979824bd68 (patch)
treecaa435843c73aab13174a3b63bfb6dd759a9df73 /src/render/WaterCannon.cpp
parentmissing endlines (diff)
parentRemove all constexpr (diff)
downloadre3-861506d048b7c4370f066e62233448979824bd68.tar
re3-861506d048b7c4370f066e62233448979824bd68.tar.gz
re3-861506d048b7c4370f066e62233448979824bd68.tar.bz2
re3-861506d048b7c4370f066e62233448979824bd68.tar.lz
re3-861506d048b7c4370f066e62233448979824bd68.tar.xz
re3-861506d048b7c4370f066e62233448979824bd68.tar.zst
re3-861506d048b7c4370f066e62233448979824bd68.zip
Diffstat (limited to 'src/render/WaterCannon.cpp')
-rw-r--r--src/render/WaterCannon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/WaterCannon.cpp b/src/render/WaterCannon.cpp
index 03aa8f0e..7a9aa4d9 100644
--- a/src/render/WaterCannon.cpp
+++ b/src/render/WaterCannon.cpp
@@ -2,7 +2,7 @@
#include "patcher.h"
#include "WaterCannon.h"
-CWaterCannon* aCannons = (CWaterCannon*)0x8F2CA8;
+CWaterCannon (&aCannons)[NUM_WATERCANNONS] = *(CWaterCannon(*)[NUM_WATERCANNONS])*(uintptr*)0x8F2CA8;
WRAPPER void CWaterCannons::Update(void) { EAXJMP(0x522510); }
WRAPPER void CWaterCannons::UpdateOne(uint32 id, CVector *pos, CVector *dir) { EAXJMP(0x522470); }