1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Protect against Sources being null

This commit is contained in:
Gymnasiast
2018-07-30 22:01:04 +02:00
parent 8ff6831c57
commit edaebd5163
4 changed files with 11 additions and 3 deletions

View File

@@ -1090,7 +1090,7 @@ static void window_editor_object_selection_paint(rct_window* w, rct_drawpixelinf
y += 12;
// Draw object source
stringId = object_manager_get_source_game_string(listItem->repositoryItem->Sources[0]);
stringId = object_manager_get_source_game_string(listItem->repositoryItem->GetFirstSourceGame());
gfx_draw_string_right(dpi, stringId, nullptr, COLOUR_WHITE, w->x + w->width - 5, y);
y += 12;