Fixed crash when dereferencing the potential null pointer returned by GetSelectedGame().
Flatten a GCAdapter function