1
0

Fix type-o in theft tracker

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2022-03-24 09:29:49 -07:00
parent 5f3d0a4cdb
commit 746340576f

View File

@ -4073,10 +4073,10 @@ const trackTheft = (game, from, to, type, count) => {
/* Initialize 'type' field in structures */ /* Initialize 'type' field in structures */
if (!(type in stats[from].stole)) { if (!(type in stats[from].stole)) {
games.stolen[from].stole[type] = 0; stats[from].stole[type] = 0;
} }
if (!(type in stats[to].stole)) { if (!(type in stats[to].stolen)) {
games.stole[to].stolen[type] = 0; stats[to].stolen[type] = 0;
} }
/* Update counts */ /* Update counts */