From 746340576f6ed5321be0a29772b0dcd567ef0ba2 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 24 Mar 2022 09:29:49 -0700 Subject: [PATCH] Fix type-o in theft tracker Signed-off-by: James Ketrenos --- server/routes/games.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes/games.js b/server/routes/games.js index c2e13e9..3b50d28 100755 --- a/server/routes/games.js +++ b/server/routes/games.js @@ -4073,10 +4073,10 @@ const trackTheft = (game, from, to, type, count) => { /* Initialize 'type' field in structures */ if (!(type in stats[from].stole)) { - games.stolen[from].stole[type] = 0; + stats[from].stole[type] = 0; } - if (!(type in stats[to].stole)) { - games.stole[to].stolen[type] = 0; + if (!(type in stats[to].stolen)) { + stats[to].stolen[type] = 0; } /* Update counts */