Skip to content

Commit

Permalink
DM: Fix some CppCheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and Bendegúz Nagy committed Aug 26, 2016
1 parent 75db418 commit 59af06f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions engines/dm/dm.cpp
Expand Up @@ -41,6 +41,13 @@ DMEngine::DMEngine(OSystem *syst) : Engine(syst), _console(nullptr) {
// register random source
_rnd = new Common::RandomSource("quux");

_displayMan = nullptr;
_dungeonMan = nullptr;
_eventMan = nullptr;
_menuMan = nullptr;
_stopWaitingForPlayerInput = false;
_gameTimeTicking = false;

debug("DMEngine::DMEngine");
}

Expand Down
2 changes: 1 addition & 1 deletion engines/dm/dm.h
Expand Up @@ -55,7 +55,7 @@ class Thing {
static const Thing thingNone;
static const Thing thingEndOfList;

Thing() {}
Thing() : data(0) {}
Thing(uint16 d) { set(d); }

void set(uint16 d) {
Expand Down
2 changes: 1 addition & 1 deletion engines/dm/dungeonman.cpp
Expand Up @@ -773,7 +773,7 @@ void DungeonMan::decodeText(char *destString, Thing thing, TextType type) {
*destString++ = '\n';
sepChar = ' ';
} else if (type == kTextTypeInscription) {
sepChar = 0x80;
sepChar = (char)0x80;
} else {
sepChar = '\n';
}
Expand Down
1 change: 1 addition & 0 deletions engines/dm/eventman.cpp
Expand Up @@ -218,6 +218,7 @@ EventManager::EventManager(DMEngine *vm) : _vm(vm) {
_isCommandQueueLocked = true;

_dummyMapIndex = 0;
_pendingClickButton = kNoneMouseButton;
}


Expand Down

0 comments on commit 59af06f

Please sign in to comment.