From a432661b8afe05898d7de02f9051a637482c7d2e Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 14 Jan 2014 09:10:09 +0100 Subject: [PATCH] Minor correction --- apps/openmw/mwgui/waitdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/waitdialog.cpp b/apps/openmw/mwgui/waitdialog.cpp index f52771ffe..0ead54d9d 100644 --- a/apps/openmw/mwgui/waitdialog.cpp +++ b/apps/openmw/mwgui/waitdialog.cpp @@ -183,7 +183,7 @@ namespace MWGui if (x > y) { float fSleepRestMod = world->getStore().get().find("fSleepRestMod")->getFloat(); - mInterruptAt = int(fSleepRestMod * hoursToWait); + mInterruptAt = hoursToWait - int(fSleepRestMod * hoursToWait); mInterruptCreatureList = region->mSleepList; } }