1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed opening spellbook via hero screen.

This commit is contained in:
Michał W. Urbańczyk 2011-02-15 18:40:06 +00:00
parent 6db068f506
commit 44619757e8

View File

@ -4509,7 +4509,7 @@ void CArtPlace::clickLeft(tribool down, bool previousState)
if (!down && previousState) if (!down && previousState)
{ {
if(ourArt && ourArt->id == 0) //spellbook if(ourArt && ourArt->artType->id == 0) //spellbook
return; //this is handled separately return; //this is handled separately
if(!ourOwner->commonInfo->src.AOH) //nothing has been clicked if(!ourOwner->commonInfo->src.AOH) //nothing has been clicked