aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2005-08-12 19:43:39 +0000
committerEugene Sandulenko2005-08-12 19:43:39 +0000
commit1ed8d450f02730156f0db2d33a6f870916863513 (patch)
tree2d74d0d8f758d78c3963ccd9c66bf4925186d81b
parent42cd4a95acc591626c0c555bcaabe440276b8078 (diff)
downloadscummvm-rg350-1ed8d450f02730156f0db2d33a6f870916863513.tar.gz
scummvm-rg350-1ed8d450f02730156f0db2d33a6f870916863513.tar.bz2
scummvm-rg350-1ed8d450f02730156f0db2d33a6f870916863513.zip
Fix bug #1257459 "ITE: Game crashes at airport"
svn-id: r18671
-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