about summary refs log tree commit diff
path: root/src/game/editor/editor.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-20 22:18:31 +0200
committeroy <Tom_Adams@web.de>2011-07-20 22:18:31 +0200
commit6312a2d71ca35cd925602bf978ef7c9483d6f78f (patch)
treeec23d05f5c3c84be5ce53b7aa1789d1def3a131c /src/game/editor/editor.cpp
parent84e5c534322940a696d9a915829a5e69e5679a28 (diff)
downloadzcatch-6312a2d71ca35cd925602bf978ef7c9483d6f78f.tar.gz
zcatch-6312a2d71ca35cd925602bf978ef7c9483d6f78f.zip
fixed few things in th editor
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;