new assertions

stair fixes
This commit is contained in:
2016-01-27 21:36:07 +01:00
parent 0e05f4bef8
commit c4ea811342
2 changed files with 6 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ public:
/** get the center-node the given Point belongs to */
const T& getNodeFor(const GridPoint& p) {
const UID uid = getUID(p);
if (hashes.find(uid) == hashes.end()) {throw Exception("element not found!");}
Assert::isTrue(hashes.find(uid) != hashes.end(), "element not found!");
return nodes[hashes[uid]];
}