diff --git a/binaries/data/mods/public/simulation/components/Treasure.js b/binaries/data/mods/public/simulation/components/Treasure.js index fc6cbd6b0b..84e284eccc 100644 --- a/binaries/data/mods/public/simulation/components/Treasure.js +++ b/binaries/data/mods/public/simulation/components/Treasure.js @@ -70,7 +70,7 @@ Treasure.prototype.Reward = function(entity) if (this.resources) cmpPlayer.AddResources(this.resources); - let cmpStatisticsTracker = QueryOwnerInterface(this.entity, IID_StatisticsTracker); + let cmpStatisticsTracker = QueryOwnerInterface(entity, IID_StatisticsTracker); if (cmpStatisticsTracker) cmpStatisticsTracker.IncreaseTreasuresCollectedCounter();