summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-20 15:19:33 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-20 15:19:33 +0200
commitbe8e29e4e2dede741516be156dc370376acb13a9 (patch)
tree8e68c4e5c40b69511dd2c151aa35c917c3062dea /src/render/WaterLevel.cpp
parentfixed replay (diff)
parentone more fix (diff)
downloadre3-be8e29e4e2dede741516be156dc370376acb13a9.tar
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.gz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.bz2
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.lz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.xz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.zst
re3-be8e29e4e2dede741516be156dc370376acb13a9.zip
Diffstat (limited to 'src/render/WaterLevel.cpp')
-rw-r--r--src/render/WaterLevel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index 2f994132..30be88e1 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -173,9 +173,8 @@ CWaterLevel::CreateWavyAtomic()
{
wavyMorphTarget = RpGeometryGetMorphTarget(wavyGeometry, 0);
- wavyVert = RpMorphTargetGetVertices(wavyMorphTarget);
-
ASSERT(wavyMorphTarget != NULL);
+ wavyVert = RpMorphTargetGetVertices(wavyMorphTarget);
ASSERT(wavyVert != NULL);
for ( int32 i = 0; i < 9; i++ )
@@ -1149,10 +1148,10 @@ CWaterLevel::AllocateBoatWakeArray()
ASSERT(ms_pWavyAtomic != NULL );
RpGeometry *wavyGeometry = RpAtomicGetGeometry(ms_pWavyAtomic);
+ ASSERT(wavyGeometry != NULL );
RpMorphTarget *wavyMorphTarget = RpGeometryGetMorphTarget(wavyGeometry, 0);
RpMaterial *wavyMaterial = RpGeometryGetMaterial(wavyGeometry, 0);
- ASSERT(wavyGeometry != NULL );
ASSERT(wavyMorphTarget != NULL );
ASSERT(wavyMaterial != NULL );