From 125f39275dcb8fddb1739a665621d6e90f87799c Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Sun, 6 Feb 2011 17:37:51 +0000 Subject: [PATCH] Compile fix for previous commit. --- AI/GeniusAI/ExpertSystem.cpp | 2 +- client/CKingdomInterface.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"