1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Fix getpcinjail returning 0 when the console is open

This commit is contained in:
MiroslavR 2015-02-07 20:13:11 +01:00
parent 9bbe6f8c5e
commit 2223a69ab8

View file

@ -1007,7 +1007,7 @@ namespace MWScript
virtual void execute (Interpreter::Runtime &runtime)
{
runtime.push (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Jail);
runtime.push (MWBase::Environment::get().getWindowManager()->containsMode(MWGui::GM_Jail));
}
};