Fix Tour Guide (first object in list did not work)

Backport of 061b390f
pull/432/head
Hleb Valoshka 2019-10-04 21:01:21 +03:00
parent 277d9ce678
commit 5350dfc8a1
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ BOOL APIENTRY TourGuideProc(HWND hDlg,
const DestinationList* destinations = guide->appCore->getDestinations();
if (hwnd != NULL && destinations != NULL)
{
Destination* dest = (*destinations)[0];
guide->selectedDest = dest;
for (DestinationList::const_iterator iter = destinations->begin();
iter != destinations->end(); iter++)
{