aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/teenagent/objects.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/objects.h b/engines/teenagent/objects.h
index 6838f6c49b..dedcd7cc02 100644
--- a/engines/teenagent/objects.h
+++ b/engines/teenagent/objects.h
@@ -37,7 +37,7 @@ struct Rect {
int16 left, top, right, bottom;
inline Rect() : left(0), top(0), right(0), bottom(0), _base(NULL) {}
-
+ inline Rect(const Common::Rect &r) : left(r.left), top(r.top), right(r.right), bottom(r.bottom), _base(NULL) {}
inline Rect(uint16 l, uint16 t, uint16 r, uint16 b) : left(l), top(t), right(r), bottom(b), _base(NULL) {}
inline bool in(const Common::Point &point) const {