From b923303fe6d284468afbf86c235b0d4d670b2bb1 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 15 Oct 2021 22:36:22 -0500 Subject: [PATCH] Use get game util --- scripts/client/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index f022a1be..8c50bda3 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -670,8 +670,8 @@ function getPosInFrontOfPos(pos, angle, distance) { // =========================================================================== function getAllowedSkinIndexBySkinId(skinId) { - for(let i in allowedSkins[game.game]) { - if(skinId == allowedSkins[game.game][i][0]) { + for(let i in allowedSkins[getGame()]) { + if(skinId == allowedSkins[getGame()][i][0]) { return i; } }