- for(int i = 0; i < NUM_STATS; i++)
- {
- reader.read_int(stat_name_to_string(i).c_str(), stats[i][SPLAYER]);
- reader.read_int((stat_name_to_string(i) + "-total").c_str(), stats[i][STOTAL]);
- }
+ for(int i = 0; i < NUM_STATS; i++) {
+ reader.get(stat_name_to_string(i).c_str(), stats[i][SPLAYER]);
+ reader.get((stat_name_to_string(i) + "-total").c_str(), stats[i][STOTAL]);
+ }