1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Rename int3::valid to isValid for consistency

This commit is contained in:
Ivan Savenko
2025-02-28 19:56:43 +00:00
parent 0ead6a50b5
commit 9f713a0914
26 changed files with 42 additions and 42 deletions

View File

@@ -675,7 +675,7 @@ void CCastleBuildings::recreate()
if(town->hasBuilt(BuildingID::SHIPYARD))
{
auto bayPos = town->bestLocation();
if(!bayPos.valid())
if(!bayPos.isValid())
logGlobal->warn("Shipyard in non-coastal town!");
std::vector <const CGObjectInstance *> vobjs = GAME->interface()->cb->getVisitableObjs(bayPos, false);
//there is visitable obj at shipyard output tile and it's a boat or hero (on boat)