mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 13:15:32 +00:00
Fix interactive ID validity checks in TypesetBookImpl
This commit is contained in:
parent
140be70a90
commit
210c02d98e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue