fixed a warning

This commit is contained in:
Gunter Labes 2009-07-31 23:28:17 +00:00
parent c503f92a83
commit e1bdbe4a60

View File

@ -352,7 +352,7 @@ void upload_log::start(game_state &state, const team &team,
if(uploader_settings::new_uploader) {
//replace newlines in map definition with semicolons so that braindead server-side wml parser doesn't get confused
std::string encoded_map(map_data);
for(int idx = 0; idx < encoded_map.length(); idx++) {
for(size_t idx = 0; idx < encoded_map.length(); idx++) {
if(encoded_map[idx] == '\n')
encoded_map[idx] = ';';
}