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:
Thonsew 2011-08-13 14:55:04 +00:00
parent 82e1e06a20
commit 331f9abfb1

View file

@ -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();