Skip to content

Commit

Permalink
WAGE: Fix random crash on start
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 31, 2015
1 parent b0990b7 commit 1b6663a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engines/wage/entities.cpp
Expand Up @@ -160,9 +160,12 @@ const char *Scene::getFontName() {
return "Unknown";
}

Obj::Obj(String name, Common::SeekableReadStream *data) : _currentOwner(NULL), _currentScene(NULL) {
Obj::Obj(String name, Common::SeekableReadStream *data) {
_name = name;
_classType = OBJ;
_currentOwner = NULL;
_currentScene = NULL;

_design = new Design(data);

setDesignBounds(readRect(data));
Expand Down Expand Up @@ -236,6 +239,8 @@ Chr::Chr(String name, Common::SeekableReadStream *data) {
_classType = CHR;
_design = new Design(data);

_currentScene = NULL;

setDesignBounds(readRect(data));

_physicalStrength = data->readByte();
Expand Down

0 comments on commit 1b6663a

Please sign in to comment.