Permalink
Browse files

fixed an msvc 6 compilation problem

  • Loading branch information...
1 parent 8a5209c commit cbaee8cba7edb46cea952fb0f6e23f87d30a6b6b @AvengerTeamBG AvengerTeamBG committed Aug 11, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 gemrb/core/Interface.cpp
View
@@ -2549,11 +2549,11 @@ bool Interface::LoadEncoding()
}
const char *s;
- unsigned int i = (unsigned int) ini->GetKeyAsInt ("charset", "CharCount", 0);
- if (i>99) i=99;
- while(i--) {
+ unsigned int cc = (unsigned int) ini->GetKeyAsInt ("charset", "CharCount", 0);
+ if (cc>99) cc=99;
+ while(cc--) {
char key[10];
- snprintf(key,9,"Letter%d", i+1);
+ snprintf(key,9,"Letter%d", cc+1);
s = ini->GetKeyAsString( "charset", key, NULL );
if (s) {
const char *s2 = strchr(s,',');

0 comments on commit cbaee8c

Please sign in to comment.