Use get game util

This commit is contained in:
Vortrex
2021-10-15 22:36:22 -05:00
parent a9b61bd63c
commit b923303fe6

View File

@@ -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;
}
}