Jelajahi Sumber

Compile fix for previous commit.

DjWarmonger 14 tahun lalu
induk
melakukan
125f39275d
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      AI/GeniusAI/ExpertSystem.cpp
  2. 1 0
      client/CKingdomInterface.cpp

+ 1 - 1
AI/GeniusAI/ExpertSystem.cpp

@@ -136,7 +136,7 @@ template <typename input, typename conType> void Rule<input, conType>::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;
 }

+ 1 - 0
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"