mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
XEEN: Fix uninitialized instance field warnings
This commit is contained in:
parent
1adc4ac58d
commit
a97a9507c9
@ -27,12 +27,12 @@
|
||||
namespace Xeen {
|
||||
|
||||
FontSurface::FontSurface() : XSurface(), _fontData(nullptr), _bgColor(DEFAULT_BG_COLOR),
|
||||
_fontReduced(false),_fontJustify(JUSTIFY_NONE), _msgWraps(false) {
|
||||
_fontReduced(false),_fontJustify(JUSTIFY_NONE), _msgWraps(false), _displayString(nullptr) {
|
||||
setTextColor(0);
|
||||
}
|
||||
|
||||
FontSurface::FontSurface(int wv, int hv) : XSurface(wv, hv), _fontData(nullptr), _msgWraps(false),
|
||||
_bgColor(DEFAULT_BG_COLOR), _fontReduced(false), _fontJustify(JUSTIFY_NONE) {
|
||||
_bgColor(DEFAULT_BG_COLOR), _fontReduced(false), _fontJustify(JUSTIFY_NONE), _displayString(nullptr) {
|
||||
create(w, h);
|
||||
setTextColor(0);
|
||||
}
|
||||
|
@ -528,6 +528,9 @@ MazeDifficulties::MazeDifficulties() {
|
||||
_bashDoor = 0;
|
||||
_bashGrate = 0;
|
||||
_bashWall = 0;
|
||||
_wallNoPass = -1;
|
||||
_surfaceNoPass = -1;
|
||||
_chance2Run = -1;
|
||||
}
|
||||
|
||||
void MazeDifficulties::synchronize(Common::SeekableReadStream &s) {
|
||||
@ -563,6 +566,7 @@ void MazeData::clear() {
|
||||
_trapDamage = 0;
|
||||
_wallKind = 0;
|
||||
_tavernTips = 0;
|
||||
_mazeId = 0;
|
||||
}
|
||||
|
||||
void MazeData::synchronize(Common::SeekableReadStream &s) {
|
||||
|
@ -105,6 +105,7 @@ Scripts::Scripts(XeenEngine *vm) : _vm(vm) {
|
||||
_var50 = false;
|
||||
_redrawDone = false;
|
||||
_windowIndex = -1;
|
||||
_event = nullptr;
|
||||
}
|
||||
|
||||
int Scripts::checkEvents() {
|
||||
|
@ -33,6 +33,7 @@ WorldOfXeenEngine::WorldOfXeenEngine(OSystem *syst, const XeenGameDescription *g
|
||||
: XeenEngine(syst, gameDesc), CloudsCutscenes(this),
|
||||
DarkSideCutscenes(this) {
|
||||
_seenDarkSideIntro = false;
|
||||
_pendingAction = WOX_PLAY_GAME;
|
||||
}
|
||||
|
||||
void WorldOfXeenEngine::outerGameLoop() {
|
||||
|
@ -58,11 +58,12 @@ XeenEngine::XeenEngine(OSystem *syst, const XeenGameDescription *gameDesc)
|
||||
_spells = nullptr;
|
||||
_town = nullptr;
|
||||
_eventData = nullptr;
|
||||
_quitMode = 0;
|
||||
_noDirectionSense = false;
|
||||
_startupWindowActive = false;
|
||||
_quitMode = 0;
|
||||
_mode = MODE_0;
|
||||
_endingScore = 0;
|
||||
_startupWindowActive = false;
|
||||
_loadSaveSlot = -1;
|
||||
g_vm = this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user