1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Check if slot locked before pick on Artifact Merchants

This one is fixes issue 2007
This commit is contained in:
ArseniyShestakov 2014-12-25 19:24:28 +03:00
parent 54437a3b19
commit f71cfdf173

View File

@ -624,7 +624,7 @@ void CTradeWindow::artifactSelected(CArtPlace *slot)
{
assert(mode == EMarketMode::ARTIFACT_RESOURCE);
items[1][0]->setArtInstance(slot->ourArt);
if(slot->ourArt)
if(slot->ourArt && !slot->locked)
hLeft = items[1][0];
else
hLeft = nullptr;