1
0
forked from 0ad/0ad

Fixes an overloaded-virtual warning in clang.

This was SVN commit r12509.
This commit is contained in:
historic_bruno 2012-08-21 20:13:42 +00:00
parent d73c589a04
commit 619dd95d5b

View File

@ -311,14 +311,14 @@ private:
Observable<AtObj>& m_MapSettings;
wxArrayString m_Players;
void SetSelection(size_t playerID)
void SetSelection(int playerID)
{
// This control may not be loaded yet (before first display)
// or may have less items than we expect, which could cause
// an assertion failure, so handle that here
if (playerID < GetCount())
if ((unsigned int)playerID < GetCount())
{
wxComboBox::SetSelection((int)playerID);
wxComboBox::SetSelection(playerID);
}
else
{