mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-31 15:14:38 +00:00
TU24
This commit is contained in:
@@ -142,7 +142,7 @@ void UIScene_DebugOverlay::customDraw(IggyCustomDrawCallbackRegion *region)
|
||||
if(pMinecraft->localplayers[m_iPad] == nullptr || pMinecraft->localgameModes[m_iPad] == nullptr) return;
|
||||
|
||||
int itemId = -1;
|
||||
swscanf_s(static_cast<wchar_t *>(region->name),L"item_%d",&itemId);
|
||||
swscanf(static_cast<wchar_t *>(region->name),L"item_%d",&itemId);
|
||||
if (itemId == -1 || itemId > Item::ITEM_NUM_COUNT || Item::items[itemId] == nullptr)
|
||||
{
|
||||
app.DebugPrintf("This is not the control we are looking for\n");
|
||||
|
||||
Reference in New Issue
Block a user