about summary refs log tree commit diff
path: root/src/game/editor/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/editor/editor.cpp')
-rw-r--r--src/game/editor/editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp
index 7453472a..500e600b 100644
--- a/src/game/editor/editor.cpp
+++ b/src/game/editor/editor.cpp
@@ -193,7 +193,7 @@ void CEditorImage::AnalyseTileFlags()
 void CEditor::EnvelopeEval(float TimeOffset, int Env, float *pChannels, void *pUser)
 {
 	CEditor *pThis = (CEditor *)pUser;
-	if(Env < 0 || Env > pThis->m_Map.m_lEnvelopes.size())
+	if(Env < 0 || Env >= pThis->m_Map.m_lEnvelopes.size())
 	{
 		pChannels[0] = 0;
 		pChannels[1] = 0;