hedgewars/uScript.pas
changeset 11854 bc5714636364
parent 11852 38e7206a5df4
child 11884 c6eafb6f2735
--- a/hedgewars/uScript.pas	Fri Sep 16 00:22:05 2016 +0200
+++ b/hedgewars/uScript.pas	Fri Sep 16 00:41:03 2016 +0200
@@ -2568,7 +2568,7 @@
         begin
         at:= LuaToAmmoTypeOrd(L, 1, call, params);                                                                                                   
         if at >= 0 then   
-            lua_pushstring(L, Str2PChar(trammo[Ammoz[TAmmoType(at)].NameId]));
+            lua_pushstring(L, PChar(trammo[Ammoz[TAmmoType(at)].NameId]));
         end
     else
         lua_pushnil(L);