Skip to content

Commit

Permalink
Update OBJECT/DeleteObject.md
Browse files Browse the repository at this point in the history
Co-authored-by: Dillon Skaggs <[email protected]>
  • Loading branch information
spacevx and AvarianKnight authored Aug 19, 2024
1 parent bcaa72d commit d357211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OBJECT/DeleteObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ uint objectHash = GetHashKey("v_ret_gc_chair03");
int prop = GetClosestObjectOfType(playerCoords.X, playerCoords.Y, playerCoords.Z, 10.0f, objectHash, true, false, false);

// If the object is a mission entity, we have to set it to false. Otherwise, it won't be possible to delete the object.
if (IsEntityAMissionEntity(object))
if (IsEntityAMissionEntity(prop))
{
SetEntityAsMissionEntity(prop, false, true);
}
Expand Down

0 comments on commit d357211

Please sign in to comment.