branch | webgl |
changeset 9240 | 3a6608ae0a5e |
parent 9236 | ddd675825672 |
child 9244 | bb95e351270c |
--- 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