Skip to content

Commit

Permalink
Fixed broken saves.
Browse files Browse the repository at this point in the history
  • Loading branch information
Whales committed Nov 19, 2011
1 parent 494276b commit 0f9e9bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions game.cpp
Expand Up @@ -1269,9 +1269,9 @@ void game::save()
fout << int(turn) << " " << int(last_target) << " " << int(run_mode) << " " <<
mostseen << " " << nextinv << " " << next_npc_id << " " <<
next_faction_id << " " << next_mission_id << " " << int(nextspawn) <<
int(nextweather) << " " << weather << " " << int(temperature) << " " <<
levx << " " << levy << " " << levz << " " << cur_om.posx << " " <<
cur_om.posy << " " << std::endl;
" " << int(nextweather) << " " << weather << " " << int(temperature) <<
" " << levx << " " << levy << " " << levz << " " << cur_om.posx <<
" " << cur_om.posy << " " << std::endl;
// Next, the scent map.
for (int i = 0; i < SEEX * 3; i++) {
for (int j = 0; j < SEEY * 3; j++)
Expand Down
4 changes: 2 additions & 2 deletions player.cpp
Expand Up @@ -351,7 +351,7 @@ void player::load_info(game *g, std::string data)
illness.push_back(illtmp);
}

int numadd;
int numadd = 0;
addiction addtmp;
dump >> numadd;
for (int i = 0; i < numadd; i++) {
Expand All @@ -360,7 +360,7 @@ void player::load_info(game *g, std::string data)
addictions.push_back(addtmp);
}

int numbio;
int numbio = 0;
bionic biotmp;
dump >> numbio;
for (int i = 0; i < numbio; i++) {
Expand Down

0 comments on commit 0f9e9bf

Please sign in to comment.