Make Str2PChar more pas2c-friendly
authorunc0rr
Tue, 01 May 2012 19:28:30 +0400
changeset 6978 1dc33050149d
parent 6977 6a2ecad333da
child 6979 cd28fe36170a
Make Str2PChar more pas2c-friendly
hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Tue May 01 16:16:09 2012 +0200
+++ b/hedgewars/uUtils.pas	Tue May 01 19:28:30 2012 +0400
@@ -259,8 +259,8 @@
 end;
 
 
+var CharArray: array[byte] of Char;
 function Str2PChar(const s: shortstring): PChar;
-const CharArray: array[byte] of Char = '';
 begin
 CharArray:= s;
 CharArray[Length(s)]:= #0;