1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

(g++) Compilation fixes.

This commit is contained in:
Frank Zago 2010-07-17 01:19:16 +00:00
parent 52c224502c
commit eecfa0f2bd
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#ifndef __SDL_EXTENSIONS_H__
#define __SDL_EXTENSIONS_H__
#include "../global.h"
#include "SDL_Video.h"
#include "SDL_video.h"
#include "SDL_ttf.h"
#include <string>
#include <vector>

View File

@ -84,11 +84,11 @@ void DLL_EXPORT BonusList::getBonuses(BonusList &out, const CSelector &selector,
void BonusList::limit(const CBonusSystemNode &node)
{
for(const_iterator i = begin(); i != end(); i++)
for(iterator i = begin(); i != end(); i++)
{
if(i->limiter && i->limiter->limit(*i, node))
{
const_iterator toErase = i;
iterator toErase = i;
i--;
erase(toErase);
}
@ -472,4 +472,4 @@ CCreatureTypeLimiter::CCreatureTypeLimiter()
{
creature = NULL;
includeUpgrades = false;
}
}