From 4e561c43628da69621f1781b018d585229a4b818 Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Sat, 21 Jan 2023 22:02:11 +0100 Subject: [PATCH] fix: antitank vehicles being recognized as tanks --- squad-server/layers/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squad-server/layers/layer.js b/squad-server/layers/layer.js index e19fd30b..78bb0b08 100644 --- a/squad-server/layers/layer.js +++ b/squad-server/layers/layer.js @@ -31,7 +31,7 @@ export default class Layer { respawnDelay: vehicle.respawnTime })), numberOfTanks: (data[t].vehicles || []).filter((v) => { - return v.icon.match(/tank/); + return v.icon.match(/_tank/); }).length, numberOfHelicopters: (data[t].vehicles || []).filter((v) => { return v.icon.match(/helo/);