diff options
Diffstat (limited to 'engines/draci/walking.cpp')
-rw-r--r-- | engines/draci/walking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/walking.cpp b/engines/draci/walking.cpp index b9d7434349..f7c85d9bcd 100644 --- a/engines/draci/walking.cpp +++ b/engines/draci/walking.cpp @@ -71,8 +71,8 @@ Sprite *WalkingMap::constructDrawableOverlay() const { } } - Sprite *ov = new Sprite(wlk, kScreenWidth, kScreenHeight, 0, 0, false); - delete[] wlk; + Sprite *ov = new Sprite(kScreenWidth, kScreenHeight, wlk, 0, 0, false); + // ov has taken the ownership of wlk. return ov; } |