Fix type-o in theft tracker
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
5f3d0a4cdb
commit
746340576f
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user