Skip to content

Commit

Permalink
Using local instead of global for a stmt reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Mar 19, 2018
1 parent 39276dc commit f3ec179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local asmlib = trackasmlib

------ CONFIGURE ASMLIB ------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.432")
asmlib.SetOpVar("TOOL_VERSION","5.433")
asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3)
asmlib.SetIndexes("S",4,5,6,7)
Expand Down
2 changes: 1 addition & 1 deletion lua/trackassembly/trackasmlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@ function InsertRecord(sTable,arLine)
elseif(sTable == "PHYSPROPERTIES") then
Q = SQLCacheStmt("stmtInsertPhysproperties", nil, unpack(arLine))
if(not Q) then
sStmt = SQLBuildInsert(defTable,nil,{"%s","%d","%s"})
local sStmt = SQLBuildInsert(defTable,nil,{"%s","%d","%s"})
if(not IsExistent(sStmt)) then
return StatusLog(nil,"InsertRecord: Build statement <"..sTable.."> failed") end
Q = SQLCacheStmt("stmtInsertPhysproperties", sStmt, unpack(arLine)) end
Expand Down

0 comments on commit f3ec179

Please sign in to comment.