Skip to content

Commit

Permalink
ScriptedIOControl: Ignore destroy command for jail_wood_grid_0001
Browse files Browse the repository at this point in the history
Fixes: issue #834
  • Loading branch information
dscharrer committed Jun 30, 2021
1 parent 6e92b15 commit 67e4d6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/script/ScriptedIOControl.cpp
Expand Up @@ -638,6 +638,11 @@ class DestroyCommand : public Command {
return Success;
}

if(entity->id().className() == "jail_wood_grid" && entity->id().instance() == 1) {
// TODO(patch-scripts) Workaround for http://arx.vg/834
return Success;
}

// Delay destruction of the object to avoid invalid references
bool destroyed = ARX_INTERACTIVE_DestroyIOdelayed(entity);

Expand Down

0 comments on commit 67e4d6d

Please sign in to comment.