Skip to content

Commit

Permalink
fix error in AI panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolodavis committed Nov 27, 2019
1 parent e58cf28 commit 26a73e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/debug/ai/Options.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
export let bot;
let values = {};
for ([key, value] of Object.entries(bot.opts())) {
for (let [key, value] of Object.entries(bot.opts())) {
values[key] = value.value;
}
function OnChange() {
for ([key, value] of Object.entries(values)) {
for (let [key, value] of Object.entries(values)) {
bot.setOpt(key, value);
}
}
Expand Down

0 comments on commit 26a73e4

Please sign in to comment.