1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Remove pointer to CGObjectInstance from map header

This commit is contained in:
Ivan Savenko
2023-11-17 16:39:15 +02:00
parent f53a53051b
commit 9f906ff1d2
7 changed files with 29 additions and 34 deletions

View File

@ -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)
{