diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-17 02:49:39 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-17 02:49:39 -0500 |
| commit | a4ee9e75980f498619cbfe7be91f5dc71d6f0f04 (patch) | |
| tree | 4dce6934568f40ec3321ed72a89100cd98c699f2 /sigmod/MapWarp.cpp | |
| parent | 9ed0876b668849fa3420c1aa3c29a8a672d47ea4 (diff) | |
Added MapWarp tests (with fix to toWarpCheck)
Diffstat (limited to 'sigmod/MapWarp.cpp')
| -rw-r--r-- | sigmod/MapWarp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sigmod/MapWarp.cpp b/sigmod/MapWarp.cpp index ba0276dd..c8a67702 100644 --- a/sigmod/MapWarp.cpp +++ b/sigmod/MapWarp.cpp @@ -114,9 +114,12 @@ CHECK_END() CHECK(MapWarp, Type, type) CHECK_INDEX(MapWarp, int, toMap, sigmod(), map) CHECK_BEGIN(MapWarp, int, toWarp) - const Map* map = qobject_cast<const Map*>(parent()); + const Map* map = sigmod()->mapById(m_toMap); if (!map) + { EBOUNDS_IDX(m_toMap); + return false; + } IBOUNDS(toWarp, map, warp); CHECK_END() CHECK(MapWarp, Sigcore::Script&, script) |
