Fix stack overflow on rigged power cell explosion. (#8382)

Remove the set to cell charge from explosion code. I assume the cell won't see much use since it's about to be deleted anyways.
This commit is contained in:
Pieter-Jan Briers
2022-05-23 20:15:20 +02:00
committed by GitHub
parent cf67baee7d
commit 9385786273

View File

@@ -85,7 +85,6 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
return;
var radius = MathF.Min(5, MathF.Ceiling(MathF.Sqrt(battery.CurrentCharge) / 30));
battery.CurrentCharge = 0;
_explosionSystem.TriggerExplosive(uid, radius: radius);
QueueDel(uid);