mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +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()
|
||||
{
|
||||
ControlManager()->Unregister(this);
|
||||
@ -44,15 +44,17 @@ Ambulance::~Ambulance()
|
||||
MxResult Ambulance::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
MxResult result = IslePathActor::Create(p_dsAction);
|
||||
|
||||
if (result == SUCCESS) {
|
||||
m_world = CurrentWorld();
|
||||
|
||||
if (m_world) {
|
||||
m_world->Add(this);
|
||||
}
|
||||
|
||||
m_state = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
||||
if (!m_state) {
|
||||
m_state = new AmbulanceMissionState;
|
||||
m_state = new AmbulanceMissionState();
|
||||
m_state->SetUnknown0x08(0);
|
||||
GameState()->RegisterState(m_state);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user