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__
|
#ifndef __SDL_EXTENSIONS_H__
|
||||||
#define __SDL_EXTENSIONS_H__
|
#define __SDL_EXTENSIONS_H__
|
||||||
#include "../global.h"
|
#include "../global.h"
|
||||||
#include "SDL_Video.h"
|
#include "SDL_video.h"
|
||||||
#include "SDL_ttf.h"
|
#include "SDL_ttf.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -84,11 +84,11 @@ void DLL_EXPORT BonusList::getBonuses(BonusList &out, const CSelector &selector,
|
|||||||
|
|
||||||
void BonusList::limit(const CBonusSystemNode &node)
|
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))
|
if(i->limiter && i->limiter->limit(*i, node))
|
||||||
{
|
{
|
||||||
const_iterator toErase = i;
|
iterator toErase = i;
|
||||||
i--;
|
i--;
|
||||||
erase(toErase);
|
erase(toErase);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user