From 210c02d98e4a594a97413f11d16c04df86319143 Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Sat, 1 Oct 2016 21:07:17 +0200 Subject: [PATCH] Fix interactive ID validity checks in TypesetBookImpl --- apps/openmw/mwgui/bookpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/bookpage.cpp b/apps/openmw/mwgui/bookpage.cpp index 0f412042b..c5c4e8d03 100644 --- a/apps/openmw/mwgui/bookpage.cpp +++ b/apps/openmw/mwgui/bookpage.cpp @@ -157,7 +157,7 @@ struct TypesetBookImpl : TypesetBook StyleImpl * hitTestWithMargin (int left, int top) { StyleImpl * hit = hitTest(left, top); - if (hit && hit->mInteractiveId > 0) + if (hit && hit->mInteractiveId != 0) return hit; const int maxMargin = 10; @@ -174,7 +174,7 @@ struct TypesetBookImpl : TypesetBook else hit = hitTest(left+margin, top); - if (hit && hit->mInteractiveId > 0) + if (hit && hit->mInteractiveId != 0) return hit; } }