Skip to content

Commit

Permalink
Fixed: Panel runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Sep 27, 2024
1 parent 851af2a commit f0563e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/weapons/gmod_tool/stools/trackassembly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2318,10 +2318,10 @@ function TOOL.BuildCPanel(CPanel)
CPanel:AddItem(pTree) -- Register it to the panel
local defTable = makTab:GetDefinition()
local catTypes = asmlib.GetOpVar("TABLE_CATEGORIES")
local iC, pTypes, pCateg, pNode = 1, 1, {}, {}
local coMo = makP:GetColumnName(1)
local coTy = makP:GetColumnName(2)
local coNm = makP:GetColumnName(3)
local pTypes, pCateg, pNode = {}, {}
local coMo = makTab:GetColumnName(1)
local coTy = makTab:GetColumnName(2)
local coNm = makTab:GetColumnName(3)
for iC = 1, qPanel.Size do
local vRec, bNow = qPanel[iC], true
local sMod, sTyp, sNam = vRec[coMo], vRec[coTy], vRec[coNm]
Expand Down Expand Up @@ -2426,8 +2426,8 @@ function TOOL.BuildCPanel(CPanel)
local cqProperty = asmlib.CacheQueryProperty(); if(not cqProperty) then
asmlib.LogInstance("Property population empty",sLog); return end

for iTyp = 1, cqProperty.Size do
local sT, sI = cqProperty[iTyp], asmlib.ToIcon("property_type")
for iP = 1, cqProperty.Size do
local sT, sI = cqProperty[iP], asmlib.ToIcon("property_type")
pComboPhysType:AddChoice(sT, sT, false, sI)
end

Expand Down

0 comments on commit f0563e9

Please sign in to comment.