diff --git a/engines/private/private.cpp b/engines/private/private.cpp index 095c504b64e..5a2447fdceb 100644 --- a/engines/private/private.cpp +++ b/engines/private/private.cpp @@ -47,7 +47,9 @@ PrivateEngine *g_private = NULL; extern int parse(char *); PrivateEngine::PrivateEngine(OSystem *syst, const ADGameDescription *gd) - : Engine(syst), _gameDescription(gd) { + : Engine(syst), _gameDescription(gd), _image(nullptr), _videoDecoder(nullptr), + _compositeSurface(nullptr), _transparentColor(0), _frame(nullptr), + _maxNumberClicks(0), _sirenWarning(0), _screenW(0), _screenH(0) { _rnd = new Common::RandomSource("private"); // Debug channels diff --git a/engines/private/symbol.cpp b/engines/private/symbol.cpp index b25564251d3..fb9da2f4c6f 100644 --- a/engines/private/symbol.cpp +++ b/engines/private/symbol.cpp @@ -75,7 +75,7 @@ void setSymbol(Symbol *s, int v) { } /* find s in symbol table symlist */ -static Symbol *lookup(const Common::String &s, SymbolMap symlist) { +static Symbol *lookup(const Common::String &s, const SymbolMap &symlist) { Symbol *r = symlist.getVal(s); return r; }