author | nemo |
Thu, 09 Dec 2010 20:35:28 -0500 | |
changeset 4499 | d2454e4dbd03 |
parent 4498 | 8c9595e39539 |
child 4500 | 22d06b4be225 |
child 4501 | 53ac7d07e673 |
--- a/hedgewars/uScript.pas Thu Dec 09 19:10:37 2010 -0500 +++ b/hedgewars/uScript.pas Thu Dec 09 20:35:28 2010 -0500 @@ -499,7 +499,7 @@ LuaError('Lua: Wrong number of parameters passed to GetClanColor!'); lua_pushnil(L); // return value on stack (nil) end - else lua_pushinteger(L, ClansArray[lua_tointeger(L, 1)]^.Color); + else lua_pushinteger(L, ClansArray[lua_tointeger(L, 1)]^.Color shl 8 or $FF); lc_getclancolor:= 1 end;