hedgewars/uScript.pas
changeset 12600 ef780eda6e48
parent 12596 c9711561f947
child 12621 d972b31f8881
--- a/hedgewars/uScript.pas	Fri Sep 29 23:31:29 2017 +0200
+++ b/hedgewars/uScript.pas	Sat Sep 30 00:09:48 2017 +0200
@@ -2101,27 +2101,27 @@
 
                 lua_newtable(L);
 
-                lua_pushstring(L, 'Kills');
+                lua_pushstring(L, str2pchar('Kills'));
                 lua_pushnumber(L, TeamsArray[i]^.stats.Kills);
                 lua_settable(L, -3);
 
-                lua_pushstring(L, 'Suicides');
+                lua_pushstring(L, str2pchar('Suicides'));
                 lua_pushnumber(L, TeamsArray[i]^.stats.Suicides);
                 lua_settable(L, -3);
 
-                lua_pushstring(L, 'AIKills');
+                lua_pushstring(L, str2pchar('AIKills'));
                 lua_pushnumber(L, TeamsArray[i]^.stats.AIKills);
                 lua_settable(L, -3);
 
-                lua_pushstring(L, 'TeamKills');
+                lua_pushstring(L, str2pchar('TeamKills'));
                 lua_pushnumber(L, TeamsArray[i]^.stats.TeamKills);
                 lua_settable(L, -3);
 
-                lua_pushstring(L, 'TurnSkips');
+                lua_pushstring(L, str2pchar('TurnSkips'));
                 lua_pushnumber(L, TeamsArray[i]^.stats.TurnSkips);
                 lua_settable(L, -3);
 
-                lua_pushstring(L, 'TeamDamage');
+                lua_pushstring(L, str2pchar('TeamDamage'));
                 lua_pushnumber(L, TeamsArray[i]^.stats.TeamDamage);
                 lua_settable(L, -3);