diff --git a/source/simulation2/tests/test_Simulation2.h b/source/simulation2/tests/test_Simulation2.h index d2dcbf88dc..07f8dabad3 100644 --- a/source/simulation2/tests/test_Simulation2.h +++ b/source/simulation2/tests/test_Simulation2.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Wildfire Games. +/* Copyright (C) 2019 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -107,6 +107,10 @@ public: sim.FlushDestroyedEntities(); // nothing in the queue + // Allow destroying INVALID_ENTITY which should do nothing. + sim.DestroyEntity(INVALID_ENTITY); + sim.FlushDestroyedEntities(); + sim.DestroyEntity(ent2); sim.FlushDestroyedEntities(); // already deleted