From 889a8e5cd0545f854835ab8916ee70928e6dd1b5 Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Sun, 4 Apr 2021 16:38:15 +0200 Subject: [PATCH] debug --- ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts b/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts index 502f7869..9eb0dccf 100644 --- a/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts +++ b/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts @@ -181,7 +181,7 @@ export default function clotheShopList(globalData: IGlobalData) { mp.gui.chat.push('Key ' + key); mp.gui.chat.push(item); - if (txData != undefined) { + if (txData != undefined && txData.length > 0) { categoryMenu.AddItem(new UIMenuItem(mp.game.ui.getLabelText(txData[0].data[0].GXT), "")); clotheUpperMenu = new UIMenu(" ", mp.game.ui.getLabelText(txData[0].data[0].GXT), new Point(0, 0), bannerSprite.library, bannerSprite.texture); clotheUpperMenu.Visible = false;