aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r--engines/dm/gfx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h
index 387a73de67..4dd1694ad0 100644
--- a/engines/dm/gfx.h
+++ b/engines/dm/gfx.h
@@ -295,7 +295,8 @@ public:
Box(uint16 x1, uint16 x2, uint16 y1, uint16 y2) : _x1(x1), _x2(x2), _y1(y1), _y2(y2) {}
Box() {}
- explicit Box(uint16 *ptr) {
+ template <typename T>
+ explicit Box(T *ptr) {
_x1 = *ptr++;
_x2 = *ptr++;
_y1 = *ptr++;