From 8295f7f0ff17ec94bd9dc7709a4ace92c7816a86 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 24 Feb 2016 11:35:11 +0100 Subject: WAGE: Fixed crash in Double Trouble. Needs more work. --- engines/wage/design.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index 3ecb02ef08..2a63436f5a 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -275,7 +275,9 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, Patterns &patterns, byte fillType, byte borderThickness, byte borderFillType) { byte ignored = in.readSint16BE(); // ignored - assert(ignored == 0); + + if (ignored) + warning("Ignored: %d", ignored); int numBytes = in.readSint16BE(); // #bytes used by polygon data, including the numBytes int16 by1 = in.readSint16BE(); -- cgit v1.2.3