diff --git a/AI/GeniusAI/ExpertSystem.cpp b/AI/GeniusAI/ExpertSystem.cpp index 7d22d06fb..b42a416a6 100644 --- a/AI/GeniusAI/ExpertSystem.cpp +++ b/AI/GeniusAI/ExpertSystem.cpp @@ -136,7 +136,7 @@ template void Rule::refreshRu } bool BonusCondition::matchesFact(Bonus &fact) { - if (object(fact)) //Bonus(fact) matches local Selector(object) + if (object(&fact)) //Bonus(fact) matches local Selector(object) return true; return false; } diff --git a/client/CKingdomInterface.cpp b/client/CKingdomInterface.cpp index 7676a26a0..220d66e07 100644 --- a/client/CKingdomInterface.cpp +++ b/client/CKingdomInterface.cpp @@ -1,6 +1,7 @@ #include "CKingdomInterface.h" #include "AdventureMapButton.h" #include "CAdvmapInterface.h" +#include "CPlayerInterface.h" #include "../CCallback.h" #include "../global.h" #include "CConfigHandler.h"