diff --git a/trunk/src/lua-engine.cpp b/trunk/src/lua-engine.cpp index 74065e0c..469d1644 100644 --- a/trunk/src/lua-engine.cpp +++ b/trunk/src/lua-engine.cpp @@ -3341,8 +3341,8 @@ static inline uint32 gui_getcolour_wrapped(lua_State *L, int offset, bool hasDef } case LUA_TNUMBER: { - uint32 colour = (uint32) lua_tointeger(L,offset); - return colour; + const char *str = lua_tostring(L,offset); + return (uint32)strtod(str,NULL); } case LUA_TTABLE: {