mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 00:27:31 +00:00
WAGE: Fix random crash on start
This commit is contained in:
parent
b0990b7100
commit
1b6663a7bb
@ -160,9 +160,12 @@ const char *Scene::getFontName() {
|
|||||||
return "Unknown";
|
return "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
Obj::Obj(String name, Common::SeekableReadStream *data) : _currentOwner(NULL), _currentScene(NULL) {
|
Obj::Obj(String name, Common::SeekableReadStream *data) {
|
||||||
_name = name;
|
_name = name;
|
||||||
_classType = OBJ;
|
_classType = OBJ;
|
||||||
|
_currentOwner = NULL;
|
||||||
|
_currentScene = NULL;
|
||||||
|
|
||||||
_design = new Design(data);
|
_design = new Design(data);
|
||||||
|
|
||||||
setDesignBounds(readRect(data));
|
setDesignBounds(readRect(data));
|
||||||
@ -236,6 +239,8 @@ Chr::Chr(String name, Common::SeekableReadStream *data) {
|
|||||||
_classType = CHR;
|
_classType = CHR;
|
||||||
_design = new Design(data);
|
_design = new Design(data);
|
||||||
|
|
||||||
|
_currentScene = NULL;
|
||||||
|
|
||||||
setDesignBounds(readRect(data));
|
setDesignBounds(readRect(data));
|
||||||
|
|
||||||
_physicalStrength = data->readByte();
|
_physicalStrength = data->readByte();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user