diff options
| author | oy <Tom_Adams@web.de> | 2011-03-16 21:31:55 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-16 21:31:55 +0100 |
| commit | b4bec5335960f78a0ad6ac6f0c491cb76375bd56 (patch) | |
| tree | 50a90b68565f103198c670efe9c918ace4428e55 /src/game/client/components/countryflags.cpp | |
| parent | 7412fabb9c74264010cd4ee43b2efddd326cafea (diff) | |
| download | zcatch-b4bec5335960f78a0ad6ac6f0c491cb76375bd56.tar.gz zcatch-b4bec5335960f78a0ad6ac6f0c491cb76375bd56.zip | |
added clan name and country flag selector to the player settings
Diffstat (limited to 'src/game/client/components/countryflags.cpp')
| -rw-r--r-- | src/game/client/components/countryflags.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/countryflags.cpp b/src/game/client/components/countryflags.cpp index fd6e31d1..3a56d43a 100644 --- a/src/game/client/components/countryflags.cpp +++ b/src/game/client/components/countryflags.cpp @@ -91,7 +91,7 @@ int CCountryFlags::Num() const const CCountryFlags::CCountryFlag *CCountryFlags::Get(int Index) const { - return &m_aCountryFlags[Index%m_aCountryFlags.size()]; + return &m_aCountryFlags[max(0, Index%m_aCountryFlags.size())]; } int CCountryFlags::Find(int CountryCode) const |