diff options
-rw-r--r-- | engines/sherlock/tattoo/widget_foolscap.cpp | 5 |
1 files 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; |