From 58c83dcd140137cf5c5808a95e7b0711fa556933 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 24 May 2017 23:12:23 -0500 Subject: COMMON: Make SpanOwner copy assignment make a copy of the owned Span To move data from one SpanOwner to another, use `moveFrom`. Thanks @waltervn for pointing out the problem. --- engines/sci/graphics/cursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp index 2a8600969e..89bb2a2307 100644 --- a/engines/sci/graphics/cursor.cpp +++ b/engines/sci/graphics/cursor.cpp @@ -179,7 +179,7 @@ void GfxCursor::kernelSetShape(GuiResourceId resourceId) { Common::SpanOwner > upscaledBitmap; upscaledBitmap->allocate(heightWidth * heightWidth, "upscaled cursor bitmap"); _screen->scale2x(*rawBitmap, *upscaledBitmap, SCI_CURSOR_SCI0_HEIGHTWIDTH, SCI_CURSOR_SCI0_HEIGHTWIDTH); - rawBitmap = upscaledBitmap; + rawBitmap.moveFrom(upscaledBitmap); } if (hotspot.x >= heightWidth || hotspot.y >= heightWidth) { -- cgit v1.2.3