forked from mirrors/0ad
2026a5fece
GetGUIObjectByName was previously made stricter, logging an error if it doesn't find the target object. This commit deals with the resulting error-causing (invalid) calls, by deleting them if they're unnecessary or converting them to the new TryGetGUIObjectByName (which doesn't log any errors).