1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Revert 5cd4e852d4 "Use portable cast in CTeleportDialogQuery also"

Actually, this leads to crash on MacOSX, I specially left that intact.
This commit is contained in:
Vadim Markovtsev 2016-01-18 10:44:46 +03:00
parent 575a68d78b
commit 4a05402c2f

View File

@ -321,7 +321,8 @@ CBlockingDialogQuery::CBlockingDialogQuery(const BlockingDialog &bd)
void CTeleportDialogQuery::notifyObjectAboutRemoval(const CObjectVisitQuery &objectVisit) const void CTeleportDialogQuery::notifyObjectAboutRemoval(const CObjectVisitQuery &objectVisit) const
{ {
auto obj = dynamic_ptr_cast<const CGTeleport>(objectVisit.visitedObject); // do not change to dynamic_ptr_cast - SIGSEGV!
auto obj = dynamic_cast<const CGTeleport*>(objectVisit.visitedObject);
obj->teleportDialogAnswered(objectVisit.visitingHero, *answer, td.exits); obj->teleportDialogAnswered(objectVisit.visitingHero, *answer, td.exits);
} }