From d3419f6a313e7ba214c88da1fad48d36d4423aba Mon Sep 17 00:00:00 2001 From: athrxx Date: Mon, 15 Apr 2013 21:51:19 +0200 Subject: KYRA: (EOB) - add assert in sprites_eob.cpp (might fix warning about possible null ptr deref) --- engines/kyra/sprites_eob.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/kyra') diff --git a/engines/kyra/sprites_eob.cpp b/engines/kyra/sprites_eob.cpp index f713508063..1d4c143185 100644 --- a/engines/kyra/sprites_eob.cpp +++ b/engines/kyra/sprites_eob.cpp @@ -653,6 +653,8 @@ void EoBCoreEngine::drawFlyingObjects(int index) { } } + assert(shp); + shp = _screen->scaleShape(shp, sclValue); if (rstFade) { -- cgit v1.2.3