aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--saga/script.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/saga/script.cpp b/saga/script.cpp
index 299c869219..0c476758e4 100644
--- a/saga/script.cpp
+++ b/saga/script.cpp
@@ -565,7 +565,9 @@ void Script::playfieldClick(const Point& mousePoint, bool leftButton) {
if (hitZone->getFlags() & kHitZoneProject) {
if (!hitZone->getSpecialPoint(specialPoint)) {
- error("Script::playfieldClick SpecialPoint not found");
+ // Original behaved this way and this prevents from crash
+ // at ruins. See bug #1257459
+ specialPoint.x = specialPoint.y = 0;
}
// tiled stuff