mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 01:31:20 +00:00
fix
This commit is contained in:
parent
9a40eaa0a8
commit
d73ba07603
@ -33,7 +33,7 @@ void Ambulance::Destroy(MxBool p_fromDestructor)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10036160
|
// FUNCTION: LEGO1 0x10036150
|
||||||
Ambulance::~Ambulance()
|
Ambulance::~Ambulance()
|
||||||
{
|
{
|
||||||
ControlManager()->Unregister(this);
|
ControlManager()->Unregister(this);
|
||||||
@ -44,15 +44,17 @@ Ambulance::~Ambulance()
|
|||||||
MxResult Ambulance::Create(MxDSAction& p_dsAction)
|
MxResult Ambulance::Create(MxDSAction& p_dsAction)
|
||||||
{
|
{
|
||||||
MxResult result = IslePathActor::Create(p_dsAction);
|
MxResult result = IslePathActor::Create(p_dsAction);
|
||||||
|
|
||||||
if (result == SUCCESS) {
|
if (result == SUCCESS) {
|
||||||
m_world = CurrentWorld();
|
m_world = CurrentWorld();
|
||||||
|
|
||||||
if (m_world) {
|
if (m_world) {
|
||||||
m_world->Add(this);
|
m_world->Add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_state = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
m_state = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
||||||
if (!m_state) {
|
if (!m_state) {
|
||||||
m_state = new AmbulanceMissionState;
|
m_state = new AmbulanceMissionState();
|
||||||
m_state->SetUnknown0x08(0);
|
m_state->SetUnknown0x08(0);
|
||||||
GameState()->RegisterState(m_state);
|
GameState()->RegisterState(m_state);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user