aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-29 21:30:03 +0800
committerchai <chaifix@163.com>2018-07-29 21:30:03 +0800
commit7ac86950d3a89a996974e8406ee88e8f5f44187d (patch)
treea173ac2e585fa99863ef74fc7d2f7b38f9db7164 /src/lua/graphics
parentf94264fa4ba347fc362b4ae2deea5a12ff95f5af (diff)
*update
Diffstat (limited to 'src/lua/graphics')
-rw-r--r--src/lua/graphics/luaopen_JSL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/graphics/luaopen_JSL.cpp b/src/lua/graphics/luaopen_JSL.cpp
index 9b9071c..7c59937 100644
--- a/src/lua/graphics/luaopen_JSL.cpp
+++ b/src/lua/graphics/luaopen_JSL.cpp
@@ -30,7 +30,7 @@ namespace lua
COLOR,
};
- static VARIABLE_TYPE strtotype(const char* str)
+ static VARIABLE_TYPE strToType(const char* str)
{
std::string s = std::string(str);
if (s == "number") return NUMBER;
@@ -55,7 +55,7 @@ namespace lua
const char* variable = luax_checkstring(L, 3);
if (typestr != nullptr)
{
- int type = strtotype(typestr);
+ int type = strToType(typestr);
switch (type)
{
case NUMBER: