mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user