diff options
| author | oy <Tom_Adams@web.de> | 2011-07-20 22:18:31 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-07-20 22:18:31 +0200 |
| commit | 6312a2d71ca35cd925602bf978ef7c9483d6f78f (patch) | |
| tree | ec23d05f5c3c84be5ce53b7aa1789d1def3a131c /src/game/editor/editor.cpp | |
| parent | 84e5c534322940a696d9a915829a5e69e5679a28 (diff) | |
| download | zcatch-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.cpp | 2 |
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; |