]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix singulo combining debug assert (#24602)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Sat, 27 Jan 2024 03:11:45 +0000 (03:11 +0000)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 03:11:45 +0000 (22:11 -0500)
* fix singulo combining debug assert

* oh that wasnt useless

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Server/Singularity/EntitySystems/SingularitySystem.cs

index 6b4347740ae9ab73124babd8ed85c764390c80ab..de7df32374142c0613c606e0ff277f5eb548e27d 100644 (file)
@@ -292,7 +292,7 @@ public sealed class SingularitySystem : SharedSingularitySystem
         // Should be slightly more efficient than checking literally everything we consume for a singularity component and doing the reverse.
         if (EntityManager.TryGetComponent<SingularityComponent>(args.EventHorizonUid, out var singulo))
         {
-            AdjustEnergy(uid, comp.Energy, singularity: singulo);
+            AdjustEnergy(args.EventHorizonUid, comp.Energy, singularity: singulo);
             SetEnergy(uid, 0.0f, comp);
         }
     }