1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

Compile issue fixed - it's temporary solution.

This commit is contained in:
DjWarmonger 2011-02-24 18:27:44 +00:00
parent 3ed607e1f6
commit 2f4aabca52
2 changed files with 2 additions and 2 deletions

View File

@ -535,7 +535,7 @@ void CMapHandler::terrainRect( int3 top_tile, unsigned char anim, const std::vec
static const int notBlittedInPuzzleMode[] = {124};
//don't print flaggable objects in puzzle mode
if(puzzleMode && (obj->isVisitable() || vstd::contains(notBlittedInPuzzleMode, obj->ID)))
if(puzzleMode && (obj->isVisitable() || std::find(notBlittedInPuzzleMode, notBlittedInPuzzleMode+1, obj->ID) != notBlittedInPuzzleMode+1)) //?
continue;
SDL_Rect sr2(sr);

View File

@ -431,7 +431,7 @@ namespace vstd
template <typename Item, size_t N>
bool contains(const Item (&c)[N], const Item &i) //returns true if given array contains item i
{
return std::find(c, c+N, i) != c+N;
return std::find(c, c+N, i) != c+N; //TODO: find out why template is not resolved
}
template <typename Container1, typename Container2>
typename Container2::iterator findFirstNot(Container1 &c1, Container2 &c2)//returns first element of c2 not present in c1