mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Remove pointer to CGObjectInstance from map header
This commit is contained in:
@@ -1215,7 +1215,7 @@ void RemoveObject::applyGs(CGameState *gs)
|
||||
{
|
||||
auto patcher = [&](EventCondition cond) -> EventExpression::Variant
|
||||
{
|
||||
if (cond.object == obj)
|
||||
if (cond.objectID == obj->id)
|
||||
{
|
||||
if (cond.condition == EventCondition::DESTROY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user