Skip to content

Commit

Permalink
FIX: compilation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranran-the-JuicyPork committed Mar 21, 2024
1 parent f7a3e84 commit df2f187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/schedule_gui.cc
Expand Up @@ -1010,7 +1010,7 @@ void schedule_gui_t::update_selection()
schedule->set_current_stop(min(schedule->get_count() - 1, schedule->get_current_stop()));
const uint8 current_stop = schedule->get_current_stop();
const grund_t *gr = welt->lookup(schedule->get_current_entry().pos);
const bool is_depot = gr ? welt->lookup(schedule->get_current_entry().pos)->get_depot() : false;
const bool is_depot = gr ? (welt->lookup(schedule->get_current_entry().pos)->get_depot()!=NULL) : false;
bt_wait_for_time.enable(is_depot ? false : true); // ??? waypoint ?
bt_wait_for_time.pressed = schedule->get_current_entry().wait_for_time;
entry_no->set_visible(true);
Expand Down

0 comments on commit df2f187

Please sign in to comment.