Also allow access to the last player ;-)

This was SVN commit r1765.
This commit is contained in:
Simon Brenner 2005-01-23 12:54:14 +00:00
parent 2c4b86e9ab
commit e8121ca394

View File

@ -101,7 +101,7 @@ public:
inline CPlayer *GetPlayer(uint idx)
{
if (idx >= 0 && idx < m_NumPlayers)
if (idx >= 0 && idx <= m_NumPlayers)
return m_Players[idx];
else
{