The attempt before was better, now you have restricted every tile improvements to goods and actual you just want to restrict those tile improvements that have at least one. That means that if the number of IsRestrictedToGood is greater then 0, that means IsRestrictedToGood is present in the database record, you want to continue with your code, that checks whether the right good is at the location. So you want to continue with your code, and if your for loop does not return true means that the right good is not present at the given location and therefore you cannot build the tile improvement at the given location, therefore the function must then and only then return false.
-Martin
-Martin
Comment