From 0b71a296e38f9717e5477f473b72674da64bb0e1 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 3 Aug 2015 19:50:43 -0400 Subject: SHERLOCK: RT: Fix GCC complaint about nullptr type casting --- engines/sherlock/tattoo/widget_foolscap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engines/sherlock/tattoo/widget_foolscap.cpp b/engines/sherlock/tattoo/widget_foolscap.cpp index 0ec7fb2161..8246e9a371 100644 --- a/engines/sherlock/tattoo/widget_foolscap.cpp +++ b/engines/sherlock/tattoo/widget_foolscap.cpp @@ -31,9 +31,10 @@ namespace Sherlock { namespace Tattoo { WidgetFoolscap::WidgetFoolscap(TattooEngine *vm) : WidgetBase(vm) { - for (int idx = 0; idx < 3; ++idx) + for (int idx = 0; idx < 3; ++idx) { Common::fill(&_answers[idx][0], &_answers[idx][10], 0); - Common::fill(&_solutions[0], &_solutions[3], nullptr); + _solutions[idx] = nullptr; + } _images = nullptr; _numWide = 0; _spacing = 0; -- cgit v1.2.3