Index: ps/trunk/binaries/data/mods/public/simulation/components/Mirage.js =================================================================== --- ps/trunk/binaries/data/mods/public/simulation/components/Mirage.js +++ ps/trunk/binaries/data/mods/public/simulation/components/Mirage.js @@ -67,7 +67,10 @@ Mirage.prototype.CopyIdentity = function(cmpIdentity) { this.miragedIids.add(IID_Identity); - this.classesList = cmpIdentity.GetClassesList(); + // In almost all cases we want to ignore mirage entities when querying Identity components of owned entities. + // To avoid adding a test everywhere, we don't transfer the classeslist in the template but here. + // We clone this since the classes list is not synchronized and since the mirage should be a snapshot of the entity at the given time. + this.classesList = clone(cmpIdentity.GetClassesList()); }; Mirage.prototype.GetClassesList = function() { return this.classesList };