Fix crash when talking to someone

- Also make a lot of talk stuff use std::string instead of char[]
This commit is contained in:
2014-04-14 17:06:50 -04:00
parent db98f6245e
commit a157c5358b
4 changed files with 58 additions and 61 deletions

View File

@@ -177,7 +177,7 @@ void finish_load_party(){
else {
load_town_str(univ.town.num,univ.town.record);
load_town(univ.town.num,univ.town.record);
univ.town.cur_talk_loaded = univ.town.num;
univ.town.cur_talk_loaded = -1;
for (int i = 0; i < univ.town->max_monst(); i++){
univ.town.monst[i].targ_loc.x = 0;
@@ -542,7 +542,7 @@ void init_town(){ // formerly part of load_town
}
}
// univ.town.cur_talk_loaded = univ.town.town_num;
univ.town.cur_talk_loaded = -1;
// }
}