From fa21f87a59f49455b4e0698f5290dd9191967109 Mon Sep 17 00:00:00 2001 From: ChrisL Date: Fri, 10 Oct 2008 22:47:07 +0000 Subject: [PATCH] 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 --- Utils/Text Input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/Text Input.cpp b/Utils/Text Input.cpp index acf643b5c..a0df53d02 100644 --- a/Utils/Text Input.cpp +++ b/Utils/Text Input.cpp @@ -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 ];