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:
parent
52c224502c
commit
eecfa0f2bd
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user