mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
fix mingw build
This commit is contained in:
@ -62,12 +62,35 @@ DLL_LINKAGE void SetSecSkill::applyGs( CGameState *gs )
|
||||
hero->setSecSkillLevel(which, val, abs);
|
||||
}
|
||||
|
||||
|
||||
DLL_LINKAGE SelectMap::SelectMap(const CMapInfo &src)
|
||||
{
|
||||
mapInfo = &src;
|
||||
free = false;
|
||||
}
|
||||
DLL_LINKAGE SelectMap::SelectMap()
|
||||
{
|
||||
mapInfo = nullptr;
|
||||
free = true;
|
||||
}
|
||||
|
||||
DLL_LINKAGE SelectMap::~SelectMap()
|
||||
{
|
||||
if(free)
|
||||
delete mapInfo;
|
||||
}
|
||||
|
||||
DLL_LINKAGE UpdateStartOptions::UpdateStartOptions(StartInfo &src)
|
||||
{
|
||||
options = &src;
|
||||
free = false;
|
||||
}
|
||||
DLL_LINKAGE UpdateStartOptions::UpdateStartOptions()
|
||||
{
|
||||
options = nullptr;
|
||||
free = true;
|
||||
}
|
||||
|
||||
DLL_LINKAGE UpdateStartOptions::~UpdateStartOptions()
|
||||
{
|
||||
if(free)
|
||||
|
Reference in New Issue
Block a user