FULLPIPE: Fix crash

This commit is contained in:
Eugene Sandulenko 2013-08-14 21:11:12 +03:00
parent fce8c0f595
commit 4db2d7e21b
9 changed files with 12 additions and 4 deletions

View file

@ -51,7 +51,7 @@ CGameLoader::CGameLoader() {
_inputController = new CInputController();
_gameProject = 0;
//_gameName = "untitled";
_gameName = 0;
addMessageHandlerByIndex(global_messageHandler2, 0, 0);
insertMessageHandler(global_messageHandler3, 0, 128);

View file

@ -32,7 +32,7 @@ namespace Fullpipe {
class SceneTag;
class CMctlCompound;
class CInputController;
class CInteractionController;
class CInteractionController;
class CGameLoader : public CObject {
public:

View file

@ -61,6 +61,7 @@ CInteraction::CInteraction() {
_staticsId2 = 0;
_field_28 = 0;
_sceneId = -1;
_actionName = 0;
}
bool CInteraction::load(MfcArchive &file) {

View file

@ -171,6 +171,7 @@ Message::Message(int16 parentId, int messageKind, int x, int y, int a6, int a7,
CObjstateCommand::CObjstateCommand() {
_value = 0;
_objCommandName = 0;
}
bool CObjstateCommand::load(MfcArchive &file) {
@ -192,6 +193,7 @@ MessageQueue::MessageQueue() {
_id = 0;
_isFinished = 0;
_flags = 0;
_queueName = 0;
}
MessageQueue::MessageQueue(MessageQueue *src, int parId, int field_38) {

View file

@ -122,6 +122,7 @@ CMovGraphLink::CMovGraphLink() {
_field_3C = 0;
_field_38 = 0;
_movGraphReact = 0;
_name = 0;
}
bool CMovGraphLink::load(MfcArchive &file) {

View file

@ -70,6 +70,7 @@ bool SceneTagList::load(MfcArchive &file) {
SceneTag::SceneTag() {
_field_4 = 0;
_scene = 0;
_tag = 0;
}
bool SceneTag::load(MfcArchive &file) {
@ -123,6 +124,7 @@ Scene::Scene() {
_shadows = 0;
_soundList = 0;
_libHandle = 0;
_sceneName = 0;
}
bool Scene::load(MfcArchive &file) {

View file

@ -140,7 +140,7 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) {
scene->setPictureObjectsFlag4();
for (CPtrList::iterator s = scene->_staticANIObjectList1.begin(); s != scene->_staticANIObjectList1.end(); ++s) {
StaticANIObject *o = (StaticANIObject *)s;
StaticANIObject *o = (StaticANIObject *)*s;
o->setFlags(o->_field_6 & 0xFE7F);
}

View file

@ -74,6 +74,7 @@ Sound::Sound() {
_soundData = 0;
_objectId = 0;
memset(_directSoundBuffers, 0, sizeof(_directSoundBuffers));
_description = 0;
}

View file

@ -171,6 +171,7 @@ CGameVar::CGameVar() {
_field_14 = 0;
_varType = 0;
_value.floatValue = 0;
_varName = 0;
}
bool CGameVar::load(MfcArchive &file) {