summaryrefslogtreecommitdiff
path: root/library/LuaTools.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-19 09:21:25 +0400
committerAlexander Gavrilov2012-08-19 09:21:25 +0400
commitfd0bf2ef929d3bc98570012b21e6e603c570a8f6 (patch)
treee6339698fa55793c6aa7899fe3e2a8a5f5afd9e0 /library/LuaTools.cpp
parent8ed219d4e0cbea19c8a9489294a975b81946bba2 (diff)
downloaddfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.gz
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.bz2
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.xz
Extract the color enum from color_ostream to toplevel.
Diffstat (limited to 'library/LuaTools.cpp')
-rw-r--r--library/LuaTools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/LuaTools.cpp b/library/LuaTools.cpp
index 28571a0f..75dfe23f 100644
--- a/library/LuaTools.cpp
+++ b/library/LuaTools.cpp
@@ -252,7 +252,7 @@ static int lua_dfhack_color(lua_State *S)
{
int cv = luaL_optint(S, 1, -1);
- if (cv < -1 || cv > color_ostream::COLOR_MAX)
+ if (cv < -1 || cv > COLOR_MAX)
luaL_argerror(S, 1, "invalid color value");
color_ostream *out = Lua::GetOutput(S);