TWP: Fix uninitialized scalar field _useFlag in TwpEngine.

Coverity CID 1540545
This commit is contained in:
scemino 2024-03-20 21:21:45 +01:00
parent 0982630cb6
commit 9eaeb40184

View File

@ -60,7 +60,8 @@ TwpEngine *g_twp;
TwpEngine::TwpEngine(OSystem *syst, const TwpGameDescription *gameDesc)
: Engine(syst),
_gameDescription(gameDesc),
_randomSource("Twp") {
_randomSource("Twp"),
_useFlag(UseFlag::ufNone) {
g_twp = this;
_dialog.reset(new Dialog());
_dialog->_tgt.reset(new EngineDialogTarget());