SCI: Initialize EngineState::_segMan

Destructor deletes a potentially uninitialized pointer
This commit is contained in:
sluicebox 2023-11-07 20:47:30 -07:00
parent a98dea4e7c
commit 5cc1ac3a98

View File

@ -66,8 +66,9 @@ static const uint16 s_halfWidthSJISMap[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
EngineState::EngineState(SegManager *segMan)
: _segMan(segMan),
EngineState::EngineState(SegManager *segMan) :
_segMan(segMan),
_msgState(nullptr),
_dirseeker() {
reset(false);