fixed expression in if statement

This commit is contained in:
Marc Zinnschlag 2013-11-16 19:31:35 +01:00
parent b2d2a3dd17
commit a19242b4ec

View file

@ -503,7 +503,7 @@ namespace MWInput
mInputBinder->keyPressed (arg); mInputBinder->keyPressed (arg);
if(arg.keysym.sym == SDLK_RETURN || arg.keysym.sym == SDLK_KP_ENTER if((arg.keysym.sym == SDLK_RETURN || arg.keysym.sym == SDLK_KP_ENTER)
&& MWBase::Environment::get().getWindowManager()->isGuiMode()) && MWBase::Environment::get().getWindowManager()->isGuiMode())
{ {
// Pressing enter when a messagebox is prompting for "ok" will activate the ok button // Pressing enter when a messagebox is prompting for "ok" will activate the ok button