AlexVinS 8 years ago
parent
commit
96eb9c0ac7
2 changed files with 2 additions and 2 deletions
  1. 0 2
      Global.h
  2. 2 0
      lib/battle/CPlayerBattleCallback.h

+ 0 - 2
Global.h

@@ -244,8 +244,6 @@ typedef boost::lock_guard<boost::recursive_mutex> TLockGuardRec;
 
 #define THROW_FORMAT(message, formatting_elems)  throw std::runtime_error(boost::str(boost::format(message) % formatting_elems))
 
-#define ASSERT_IF_CALLED_WITH_PLAYER if(!player) {logGlobal->errorStream() << BOOST_CURRENT_FUNCTION; assert(0);}
-
 // can be used for counting arrays
 template<typename T, size_t N> char (&_ArrayCountObj(const T (&)[N]))[N];
 #define ARRAY_COUNT(arr)    (sizeof(_ArrayCountObj(arr)))

+ 2 - 0
lib/battle/CPlayerBattleCallback.h

@@ -10,6 +10,8 @@
 #pragma once
 #include "CBattleInfoCallback.h"
 
+#define ASSERT_IF_CALLED_WITH_PLAYER if(!player) {logGlobal->error(BOOST_CURRENT_FUNCTION); assert(0);}
+
 class CGHeroInstance;
 
 class DLL_LINKAGE CPlayerBattleCallback : public CBattleInfoCallback