Eiyeron Fulmincendii hace 9 años
padre
commit
9c99d00531
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/textbox/Textbox.cpp

+ 1 - 2
src/textbox/Textbox.cpp

@@ -22,7 +22,7 @@ namespace
         for (; str[len]; ++len)
         {
             if (str[len] == MAGIC_TOKEN)
-                len += 4;
+                len += COMMAND_LEGNTH;
         }
         return len;
     }
@@ -76,7 +76,6 @@ void Textbox::set_text(char *new_text)
         buffer.push_back(t);
     }
     state = Updating;
-    add_letter(1);
 }
 
 void Textbox::add_letter(unsigned nb_letters)