[#bugs] Found (what I assume is) a typo in `AfterAddOpinionEvent.Send` where the `Object...

Issue #12014 new
Freehold Games Bot Account created an issue

Marked for crossposting by: books

Message (jump):

<implanted MAFT> Found (what I assume is) a typo in AfterAddOpinionEvent.Send where the Object parameter is never used and the Subject parameter is set twice.
cs public static void Send( IOpinion Opinion, GameObject Actor, GameObject Subject, GameObject Object = null, bool Renew = false) { AfterAddOpinionEvent E = PooledEvent<AfterAddOpinionEvent>.FromPool(); E.Opinion = Opinion; E.Actor = Actor; E.Subject = Subject; E.Subject = Subject; // <- Typo here E.Renew = Renew; if (Opinion.HandleEvent(E) && Actor.HandleEvent((MinEvent) E)) Subject.HandleEvent((MinEvent) E); PooledEvent<AfterAddOpinionEvent>.ResetTo(ref E); }

Comments (1)

  1. Log in to comment