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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user