Skip to content

Commit

Permalink
Missing changes from 72a115f
Browse files Browse the repository at this point in the history
  • Loading branch information
Machiavell1 committed Dec 31, 2010
1 parent 42d3130 commit 8ab453b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/game/AI/CoreAI/CombatAI.cpp
Expand Up @@ -351,7 +351,7 @@ void VehicleAI::CheckConditions(const uint32 diff)
if (!conditions.empty())
{
for (SeatMap::iterator itr = m_vehicle->m_Seats.begin(); itr != m_vehicle->m_Seats.end(); ++itr)
if (Unit *passenger = itr->second.passenger)
if (Unit* passenger = ObjectAccessor::GetUnit(*m_vehicle->GetBase(), itr->second.passenger))
{
if (Player* plr = passenger->ToPlayer())
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Expand Up @@ -16772,7 +16772,7 @@ void Unit::OutDebugInfo() const
{
sLog->outStringInLine("Passenger List: ");
for (SeatMap::iterator itr = GetVehicleKit()->m_Seats.begin(); itr != GetVehicleKit()->m_Seats.end(); ++itr)
if (Unit *passenger = itr->second.passenger)
if (Unit* passenger = ObjectAccessor::GetUnit(*GetVehicleBase(), itr->second.passenger))
sLog->outStringInLine(UI64FMTD", ", passenger->GetGUID());
sLog->outString();
}
Expand Down

2 comments on commit 8ab453b

@A-Metaphysical-Drama
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot compile without PCH: there is a missing #include "ObjectAccessor.h"

@johnholiver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still something wrong Machi... i'm sending crashes to u on IRC.

Please sign in to comment.