summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-14 09:50:00 +0200
committeraap <aap@papnet.eu>2020-06-14 09:50:00 +0200
commitb77d044729c41fb35599525b27357e1b7d7f173a (patch)
treeed21ec83412a28ae49cb151f361bd528a7e4b7c2 /src/vehicles
parenta few cam fixes (diff)
downloadre3-b77d044729c41fb35599525b27357e1b7d7f173a.tar
re3-b77d044729c41fb35599525b27357e1b7d7f173a.tar.gz
re3-b77d044729c41fb35599525b27357e1b7d7f173a.tar.bz2
re3-b77d044729c41fb35599525b27357e1b7d7f173a.tar.lz
re3-b77d044729c41fb35599525b27357e1b7d7f173a.tar.xz
re3-b77d044729c41fb35599525b27357e1b7d7f173a.tar.zst
re3-b77d044729c41fb35599525b27357e1b7d7f173a.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Boat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp
index 0ed7876a..d86627de 100644
--- a/src/vehicles/Boat.cpp
+++ b/src/vehicles/Boat.cpp
@@ -904,6 +904,8 @@ CBoat::AddWakePoint(CVector point)
}
m_avec2dWakePoints[0] = point;
m_afWakePointLifeTime[0] = 400.0f;
+ if(m_nNumWakePoints < ARRAY_SIZE(m_afWakePointLifeTime))
+ m_nNumWakePoints++;
}
}else{
m_avec2dWakePoints[0] = point;