Tron and Kriplo's fix for the "off-by-one" bug.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2373 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
ChrisL
2008-10-10 22:47:07 +00:00
parent 1278c52d9a
commit fa21f87a59
+1 -1
View File
@@ -1058,7 +1058,7 @@ void AddChar( UINT32 uiKey )
else
{ //insert character after cursor
INT16 sChar;
sChar = (INT16)(gpActive->ubStrLen + 1);
sChar = (INT16)gpActive->ubStrLen;
while( sChar >= gubCursorPos )
{
gpActive->szString[ sChar + 1 ] = gpActive->szString[ sChar ];