mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed a localization problem. Closes #1186
This commit is contained in:
parent
6b69f94dc8
commit
12ac0f3789
|
@ -109,7 +109,7 @@ const char *CLocalizationDatabase::FindString(unsigned Hash, unsigned ContextHas
|
|||
|
||||
unsigned DefaultHash = str_quickhash("");
|
||||
unsigned DefaultIndex = 0;
|
||||
for(unsigned i = 0; i < r.size(); ++i)
|
||||
for(unsigned i = 0; i < r.size() && r.index(i).m_Hash == Hash; ++i)
|
||||
{
|
||||
const CString &rStr = r.index(i);
|
||||
if(rStr.m_ContextHash == ContextHash)
|
||||
|
|
Loading…
Reference in a new issue