1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Compile fix for Kingdom Overview

Fixed common crash with gained exp, fixed necromancy.
This commit is contained in:
DjWarmonger
2011-07-23 06:14:05 +00:00
parent 5d2f5c2e33
commit 2047862eb1
2 changed files with 41 additions and 40 deletions

View File

@@ -10,6 +10,7 @@
#include "../lib/CCreatureHandler.h" //creatures name for objects list
#include "../lib/CGeneralTextHandler.h"
#include "../lib/CObjectHandler.h" //Hero/Town objects
#include "../lib/CHeroHandler.h" // only for calculating required xp? worth it?
#include "AdventureMapButton.h"
#include "CAnimation.h" //CAnimImage
#include "CAdvmapInterface.h" //CResDataBar
@@ -435,29 +436,29 @@ InfoBoxCustom::InfoBoxCustom(std::string ValueText, std::string NameText, std::s
{
}
std::string InfoBoxCustom::getHoverText()
std::string InfoBoxCustom::getHoverText()
{
return hoverText;
}
size_t InfoBoxCustom::getImageIndex()
return hoverText;
}
size_t InfoBoxCustom::getImageIndex()
{
return imageIndex;
}
std::string InfoBoxCustom::getImageName(InfoBox::InfoSize size)
return imageIndex;
}
std::string InfoBoxCustom::getImageName(InfoBox::InfoSize size)
{
return imageName;
}
std::string InfoBoxCustom::getNameText()
return imageName;
}
std::string InfoBoxCustom::getNameText()
{
return nameText;
}
std::string InfoBoxCustom::getValueText()
return nameText;
}
std::string InfoBoxCustom::getValueText()
{
return valueText;
return valueText;
}
bool InfoBoxCustom::prepareMessage(std::string &text, SComponent **comp)