Author Topic: GHost++ Build  (Read 822 times)

unplax

  • Member
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
GHost++ Build
« on: December 14, 2016, 03:41:00 pm »
Code: [Select]
void CStatsW3MMD :: SetWinner( uint32_t nWinner )
{
    for( vector<CGamePlayer *> :: iterator i = m_Game->m_Players.begin( ); i != m_Game->m_Players.end( ); i++)
    {
        unsigned char playerSID = m_Game->GetSIDFromPID( (*i)->GetPID( ) );

        if( playerSID < m_Game->m_Slots.size( ) )
        {
            unsigned char playerTeam = m_Game->m_Slots[playerSID].GetTeam( );

            if( playerTeam == nWinner )
                m_Flags[m_Game->m_Slots[playerSID].GetColour( )] = "winner";
            else
                m_Flags[m_Game->m_Slots[playerSID].GetColour( )] = "loser";
        }
    }
}

Code: [Select]
error C2027: use of undefined type 'CGamePlayer'
error C2227: left of '->GetPID' must point to class/struct/union/generic type

How do fix?