Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rtri
committed
Jun 30, 2015
1 parent
1ceefaf
commit bdc2662
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bdc2662
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::array?
bdc2662
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit broke all defs for some reason
bdc2662
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When i start a game com do not show up and i see these errors which look bad:
[f=0000000] Error: LuaRules::RunCallIn: error = 2, Initialize, [Internal Lua error: Call failure] error = 2, LuaRules/gadgets.lua, error = 2, LuaGadgets/setupdefs.lua, [string "LuaGadgets/setupdefs.lua"]:18: attempt to perform arithmetic on field 'energyCost' (a nil value)
stack traceback:
[C]: in function 'Include'
[string "LuaRules/main.lua"]:53: in main chunk
[f=0000000] Error: LuaUI::RunCallIn: error = 2, Initialize, [Internal Lua error: Call failure] error = 2, LuaUI/setupdefs.lua, [string "LuaUI/setupdefs.lua"]:18: attempt to perform arithmetic on field 'energyCost' (a nil value)
stack traceback:
[C]: in function 'Include'
[string "LuaUI/utils.lua"]:53: in function 'include'
[string "-- $Id: camain.lua 3171 2008-11-06 09:06:29..."]:38: in function 'chunk'
[string "luaui.lua"]:55: in main chunk
bdc2662
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using HSTR_PUSH inside a loop caused the wrong strings to be pushed since it declares a static const var.
Fixed in ad377e4