We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd5fabf commit 2f8b6cbCopy full SHA for 2f8b6cb
schedule.cc
@@ -2818,7 +2818,7 @@ void Desk_schedule::now_what() {
2818
2819
switch (state) {
2820
case desk_setup: {
2821
- static int desks[2] = {283, 407};
+ constexpr static const std::array desks{283, 407};
2822
Stand_up(npc);
2823
if (tables.empty()) {
2824
find_tables(890);
@@ -2843,7 +2843,7 @@ void Desk_schedule::now_what() {
2843
add_object(item.get());
2844
}
2845
2846
- Game_object* found = npc->find_closest(desks, 2);
+ Game_object* found = npc->find_closest(desks);
2847
if (found) {
2848
constexpr static const std::array chairs{873, 292};
2849
desk = found->weak_from_this();
0 commit comments