Skip to content

Commit

Permalink
TONY: Complete class initializations
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jun 17, 2016
1 parent 4dc60b5 commit b404524
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/tony/font.cpp
Expand Up @@ -921,6 +921,12 @@ RMDialogChoice::RMDialogChoice() {

_curAdded = 0;
_bShow = false;

_curSelection = 0;
_numChoices = 0;

_drawedStrings = NULL;
_ptDrawStrings = NULL;
}

RMDialogChoice::~RMDialogChoice() {
Expand Down
5 changes: 5 additions & 0 deletions engines/tony/game.cpp
Expand Up @@ -319,6 +319,11 @@ RMOptionScreen::RMOptionScreen() {
_fadeTime = 0;
_nEditPos = 0;
_nLastState = MENUGAME;

_bExit = false;
_bLoadMenuOnly = false;
_bNoLoadSave = false;
_bAlterGfx = false;
}

RMOptionScreen::~RMOptionScreen() {
Expand Down
1 change: 1 addition & 0 deletions engines/tony/gfxcore.h
Expand Up @@ -442,6 +442,7 @@ class RMGfxTargetBuffer : public virtual RMGfxBuffer {
OTList();
OTList(RMGfxPrimitive *pr) {
_prim = pr;
_next = NULL;
}
};

Expand Down
2 changes: 2 additions & 0 deletions engines/tony/mpal/mpalutils.cpp
Expand Up @@ -37,6 +37,8 @@ namespace MPAL {
* @param resId MPAL resource to open
*/
RMRes::RMRes(uint32 resID) {
_buf = NULL;

_h = g_vm->_resUpdate.queryResource(resID);
if (_h == NULL)
_h = mpalQueryResource(resID);
Expand Down
1 change: 1 addition & 0 deletions engines/tony/sound.cpp
Expand Up @@ -161,6 +161,7 @@ FPSfx::FPSfx(bool soundOn) {
_loopStream = 0;
_rewindableStream = 0;
_paused = false;
_loop = 0;

g_vm->_activeSfx.push_back(this);
}
Expand Down
2 changes: 2 additions & 0 deletions engines/tony/tony.cpp
Expand Up @@ -83,6 +83,8 @@ TonyEngine::TonyEngine(OSystem *syst, const TonyGameDescription *gameDesc) : Eng
_bTimeFreezed = false;
_nTimeFreezed = 0;
_vdbCodec = FPCODEC_UNKNOWN;

memset(_funcList, 0, sizeof(_funcList));
}

TonyEngine::~TonyEngine() {
Expand Down

0 comments on commit b404524

Please sign in to comment.