Fix crash when talking to someone
- Also make a lot of talk stuff use std::string instead of char[]
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user