hedgewars/uScript.pas
changeset 4499 d2454e4dbd03
parent 4498 8c9595e39539
child 4502 759c1a3bb156
--- 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;