aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/events.cpp')
-rw-r--r--engines/cge/events.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp
index 0bf5191530..433f7c6db9 100644
--- a/engines/cge/events.cpp
+++ b/engines/cge/events.cpp
@@ -142,6 +142,11 @@ void Keyboard::newKeyboard(Common::Event &event) {
/*----------------- MOUSE interface -----------------*/
Mouse::Mouse(CGEEngine *vm) : Sprite(vm, NULL), _busy(NULL), _hold(NULL), _hx(0), _vm(vm) {
+ static Seq ms[] = {
+ { 0, 0, 0, 0, 1 },
+ { 1, 1, 0, 0, 1 }
+ };
+
_hold = NULL;
_hx = 0;
_hy = 0;
@@ -150,14 +155,7 @@ Mouse::Mouse(CGEEngine *vm) : Sprite(vm, NULL), _busy(NULL), _hold(NULL), _hx(0)
_busy = NULL;
_active = false;
_flags._kill = false;
-
- static Seq ms[] = {
- { 0, 0, 0, 0, 1 },
- { 1, 1, 0, 0, 1 }
- };
- Seq *seq = (Seq *)malloc(2 * sizeof(Seq));
- Common::copy(&ms[0], &ms[2], seq);
- setSeq(seq);
+ setSeq(ms);
BMP_PTR *MC = new BMP_PTR[3];
MC[0] = new Bitmap("MOUSE", true);