summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index c9919e0..24ad6c7 100644
--- a/worker.js
+++ b/worker.js
@@ -249,6 +249,9 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => {
// patch schema, Delt -> Dealt from 2.9 onwards
// see https://github.com/gamelocker/vainglory-assets/pull/308
t.payload.Dealt = t.payload.Dealt || t.payload.Delt;
+ if (isNaN(t.payload.Dealt)) {
+ t.payload.Dealt = 0;
+ }
// linking
if (t.type == "HeroSelect")