1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

* refactoring

This commit is contained in:
mateuszb
2009-05-01 14:37:25 +00:00
parent b0e2d13b4e
commit bb8e505ccd
6 changed files with 12 additions and 12 deletions

View File

@@ -277,7 +277,7 @@ void HeroLevelUp::applyCl( CClient *cl )
if(vstd::contains(cl->playerint,h->tempOwner))
{
boost::function<void(ui32)> callback = boost::function<void(ui32)>(boost::bind(&CCallback::selectionMade,LOCPLINT->cb,_1,id));
cl->playerint[h->tempOwner]->heroGotLevel((const CGHeroInstance *)h,(int)primskill,skills, callback);
cl->playerint[h->tempOwner]->heroGotLevel(const_cast<const CGHeroInstance*>(h),static_cast<int>(primskill),skills, callback);
}
}