Quick fix for seg fault portion of bug #18495 replay load causes segfault
Moved the initialization of the gui buttons to after they were initialized in display.cpp by the fire event.
This commit is contained in:
parent
82e1e06a20
commit
331f9abfb1
1 changed files with 1 additions and 2 deletions
|
@ -111,8 +111,6 @@ void replay_controller::init_gui(){
|
|||
for(std::vector<team>::iterator t = teams_.begin(); t != teams_.end(); ++t) {
|
||||
t->reset_objectives_changed();
|
||||
}
|
||||
|
||||
buttons_.update(gui_);
|
||||
}
|
||||
|
||||
void replay_controller::init_replay_display(){
|
||||
|
@ -261,6 +259,7 @@ void replay_controller::reset_replay(){
|
|||
fire_prestart(true);
|
||||
init_gui();
|
||||
fire_start(true);
|
||||
buttons_.update(gui_);
|
||||
update_gui();
|
||||
|
||||
buttons_.reset_buttons();
|
||||
|
|
Loading…
Add table
Reference in a new issue