This commit is contained in:
Kayne Ruse
2015-04-26 03:29:33 +10:00
parent 0e149acc62
commit 2a1ee4acbf
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ Region* RegionPagerBase::FindRegion(int x, int y) {
Region* RegionPagerBase::PushRegion(Region* const ptr) {
//BUG: Lists seem to not work properly
regionList.push_front(*ptr);
if (debugRegionSum(&regionList.front())) {
if (debugRegionSum(&regionList.front()) == 0) {
throw(std::runtime_error("Checksum fail; RegionPagerBase::PushRegion()"));
}
return &regionList.front();