mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Reduce usage of implicit conversions to int
This commit is contained in:
@@ -1072,7 +1072,7 @@ void ApplyClientNetPackVisitor::visitNewObject(NewObject & pack)
|
||||
|
||||
void ApplyClientNetPackVisitor::visitSetAvailableArtifacts(SetAvailableArtifacts & pack)
|
||||
{
|
||||
if(pack.id < 0) //artifact merchants globally
|
||||
if(!pack.id.hasValue()) //artifact merchants globally
|
||||
{
|
||||
callAllInterfaces(cl, &IGameEventsReceiver::availableArtifactsChanged, nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user