NPC Vehicle Kit code

for (GuidSet::const_iterator itr = m_vehicles[team].begin(); itr != m_vehicles[team].end(); ++itr)
{
if (Unit* unit = ObjectAccessor::FindUnit((itr)))
if (Creature
creature = unit->ToCreature())
if (creature->IsVehicle())
creature->GetVehicleKit()->Dismiss();
}
m_vehicles[team].clear();

creature->GetVehicleKit()->Dismiss();

The red one i an error, how can i fix that ?

that’s quite the pile of nested ifs

https://github.com/GoD-Network/GoD-Network/blob/master/src/server/game/Battlefield/Zones

Check this !

I have a feeling you didnt include something you need, like Vehicle.h or something.

The code looks fine to me, not that I tested.

I’m glad that the title was changed but why delete posts? Mine is gone and I got a notice that Zaranthos replied but his is gone as well.

All I said was “You won’t get much help with a title like ‘Crappy Core’”. That didn’t need to be censored.

Also, why is a person with “Banned” status still allowed to post? I thought you’d need at least “member” status to post. Or was his status changed after he posted?

I don’t know what happened. I renamed the topic to a semi-proper title and hided (not deleted) the posts that were referring to the old title.

He also created this topic before being banned.

Topic locked. I don’t want to hear about any Doctor.