forked from teamnwah/openmw-tes3coop
Fix wrong assertion
This commit is contained in:
parent
4a26909172
commit
ff11d85a62
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ namespace MWRender
|
||||||
unsigned int imageY = (yLength - (y + 1)) * cellImageSizeSrc;
|
unsigned int imageY = (yLength - (y + 1)) * cellImageSizeSrc;
|
||||||
|
|
||||||
assert(imageX < image.getWidth());
|
assert(imageX < image.getWidth());
|
||||||
assert(imageY < image.getWidth());
|
assert(imageY < image.getHeight());
|
||||||
|
|
||||||
if (image.getColourAt(imageX, imageY, 0).a > 0)
|
if (image.getColourAt(imageX, imageY, 0).a > 0)
|
||||||
exploredCells.push_back(std::make_pair(x+bounds.mMinX,y+bounds.mMinY));
|
exploredCells.push_back(std::make_pair(x+bounds.mMinX,y+bounds.mMinY));
|
||||||
|
|
Loading…
Reference in a new issue