mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replace pointer with reference in pack apply functions
This commit is contained in:
@@ -138,7 +138,7 @@ bool CBank::wasVisited (PlayerColor player) const
|
||||
void CBank::onHeroVisit(const CGHeroInstance * h) const
|
||||
{
|
||||
ChangeObjectVisitors cov(ChangeObjectVisitors::VISITOR_ADD_PLAYER, id, h->id);
|
||||
cb->sendAndApply(&cov);
|
||||
cb->sendAndApply(cov);
|
||||
|
||||
BlockingDialog bd(true, false);
|
||||
bd.player = h->getOwner();
|
||||
|
||||
Reference in New Issue
Block a user