RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Entity<T> can be created from EntityUid causing NRE

Open deltanedas opened this issue 1 year ago • 0 comments
trafficstars

if i have this function

void Thing(Entity<T> ent) {}

just passing an EntityUid is allowed, and will create (uid, null)

it should either be a compile error or become (uid, Comp<T>(uid)) since this only gets caught at runtime

deltanedas avatar Apr 06 '24 22:04 deltanedas