diff options
author | Paul Gilbert | 2015-08-03 19:50:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-08-03 19:50:43 -0400 |
commit | 0b71a296e38f9717e5477f473b72674da64bb0e1 (patch) | |
tree | 65f1c6be794ef8550d0cbb1361de7f53fc2b69e3 /engines/sherlock | |
parent | 0538f08bbee8e5eed3c70149ba64ec41315c9b18 (diff) | |
download | scummvm-rg350-0b71a296e38f9717e5477f473b72674da64bb0e1.tar.gz scummvm-rg350-0b71a296e38f9717e5477f473b72674da64bb0e1.tar.bz2 scummvm-rg350-0b71a296e38f9717e5477f473b72674da64bb0e1.zip |
SHERLOCK: RT: Fix GCC complaint about nullptr type casting
Diffstat (limited to 'engines/sherlock')
-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; |