fix null pointer dereference

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4057 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-12-23 21:51:19 +00:00
parent 04aae7b5da
commit a42f70dab0
+1 -1
View File
@@ -271,7 +271,7 @@ struct mitemtextinput : mitemtext
{
SDL_EnableUNICODE(on);
if(!strlen(input.buf)) setdefaultvalue();
if(!on && modified)
if(action && !on && modified)
{
modified = false;
push("arg1", input.buf);