More crash fixes

This commit is contained in:
Vera Aguilera Puerto
2021-12-06 15:56:14 +01:00
parent c57b07a4d0
commit 0577f60df6

View File

@@ -422,7 +422,7 @@ namespace Content.Server.Interaction
if (InteractDoBefore(user, used, inRangeUnobstructed ? target : null, clickLocation, false)) if (InteractDoBefore(user, used, inRangeUnobstructed ? target : null, clickLocation, false))
return true; return true;
if (target != null) if (target != default)
{ {
var rangedMsg = new RangedInteractEvent(user, used, target, clickLocation); var rangedMsg = new RangedInteractEvent(user, used, target, clickLocation);
RaiseLocalEvent(target, rangedMsg); RaiseLocalEvent(target, rangedMsg);