1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

try to plug a few coverity false positives

This commit is contained in:
AlexVinS
2016-11-28 02:09:24 +03:00
parent 9094c99759
commit 2dd6a47764
7 changed files with 13 additions and 13 deletions

View File

@@ -788,13 +788,13 @@ void CTavernWindow::show(SDL_Surface * to)
void CTavernWindow::HeroPortrait::clickLeft(tribool down, bool previousState)
{
if(previousState && !down && h)
if(h && previousState && !down)
*_sel = _id;
}
void CTavernWindow::HeroPortrait::clickRight(tribool down, bool previousState)
{
if(down && h)
if(h && down)
{
GH.pushInt(new CRClickPopupInt(new CHeroWindow(h), true));
}