Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,11 @@ Bool OpenContain::isPassengerAllowedToFire( ObjectID id ) const

// If we are ourselves contained, our passengers need to check with them if they get past us
if( getObject()->getContainedBy() != NULL )
return getObject()->getContainedBy()->getContain()->isPassengerAllowedToFire();
{
ContainModuleInterface* contain = getObject()->getContainedBy()->getContain();
if( contain != NULL )
return contain->isPassengerAllowedToFire();
}

return TRUE;// We say yes, and we are not inside something.
}
Expand Down
Loading