uscript rendering webgl
authorunC0Rr
Mon, 17 Jun 2013 23:21:53 +0200
branchwebgl
changeset 9240 3a6608ae0a5e
parent 9238 84e591af6c29
child 9242 c07f341adad9
uscript rendering
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Mon Jun 17 23:18:39 2013 +0200
+++ b/hedgewars/uScript.pas	Mon Jun 17 23:21:53 2013 +0200
@@ -1292,7 +1292,7 @@
 var i : LongInt;
 var color : shortstring;
 begin
-	statInfo := TStatInfoType(GetEnumValue(TypeInfo(TStatInfoType),lua_tostring(L, 1)));
+	statInfo := TStatInfoType(lua_tostring(L, 1));
 	if (lua_gettop(L) <> 2) and ((statInfo <> siPlayerKills) 
 			and (statInfo <> siClanHealth)) then
         begin