diff options
| author | Kris Parker | 2009-11-14 02:57:21 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-14 02:57:21 +0000 |
| commit | 73e37f29cffa5572657c65a1817731427e0815fd (patch) | |
| tree | 461a8f2e7edf4fd825fb74b8bee1cd90f183448b /ConditionalSprite.cpp | |
| parent | 11c4bb3b2a0163011eec8f281429a2205fbb7299 (diff) | |
| download | stonesense-73e37f29cffa5572657c65a1817731427e0815fd.tar.gz stonesense-73e37f29cffa5572657c65a1817731427e0815fd.tar.bz2 stonesense-73e37f29cffa5572657c65a1817731427e0815fd.tar.xz | |
dumb off-by-one crash
Diffstat (limited to 'ConditionalSprite.cpp')
| -rw-r--r-- | ConditionalSprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ConditionalSprite.cpp b/ConditionalSprite.cpp index 3f19bed..9d77877 100644 --- a/ConditionalSprite.cpp +++ b/ConditionalSprite.cpp @@ -137,9 +137,9 @@ bool RotationBlock::BlockMatches(Block* b) uint32_t max = children.size();
if (max == 0)
return false;
- while (index > max)
+ while (index >= max)
{
- index = index - max;
+ index = index - max;
}
return children[index]->BlockMatches(b);
}
|
