mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:46:00 +00:00
6515c3fb1f
It previously failed silently and just returned undefined which would often only cause errors later on. Printing an error as soon as that happens helps with debugging, by directly catching typos, for example. For cases where the queried object may not exist, a new Engine function called TryGetGUIObjectByName is introduced. It doesn't log any errors and behaves exactly as GetGUIObjectByName used to.