Skip to content

WW3D::Init is not properly initialized when lite is true #758

Open
@xezon

Description

@xezon
WW3DErrorType WW3D::Init(void *hwnd, char *defaultpal, bool lite)
{
...
	if (!lite) {
		AnimatedSoundMgrClass::Initialize ();
		IsInitted = true;
	}
	WWDEBUG_SAY(("WW3D Init completed\n"));
}

should be

WW3DErrorType WW3D::Init(void *hwnd, char *defaultpal, bool lite)
{
...
	if (!lite) {
		AnimatedSoundMgrClass::Initialize ();
	}
	IsInitted = true;
	WWDEBUG_SAY(("WW3D Init completed\n"));
}

On second thought, maybe it is not a bug, because there is this:

WW3DErrorType WW3D::Shutdown(void)
{
	assert(Lite || IsInitted == true);
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working rightInvestigateMinorSeverity: Minor < Major < Critical < BlockerZeroHourRelates to Zero Hour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions