Fixed crash in bhv_chain_chomp_gate_update()
This commit is contained in:
parent
1454663855
commit
3867a70dd8
|
@ -558,7 +558,7 @@ void bhv_chain_chomp_gate_init(void) {
|
|||
* Update function for chain chomp gate
|
||||
*/
|
||||
void bhv_chain_chomp_gate_update(void) {
|
||||
if (o->parentObj && o->parentObj->oChainChompHitGate) {
|
||||
if (o && o->parentObj && o->parentObj->oChainChompHitGate) {
|
||||
spawn_mist_particles_with_sound(SOUND_GENERAL_WALL_EXPLOSION);
|
||||
set_camera_shake_from_point(SHAKE_POS_SMALL, o->oPosX, o->oPosY, o->oPosZ);
|
||||
spawn_mist_particles_variable(0, 0x7F, 200.0f);
|
||||
|
|
Loading…
Reference in New Issue