Fixes ios compilation

This commit is contained in:
Timofey 2016-11-11 17:32:11 +03:00
parent 0439e4a9b0
commit d7210fa287

View file

@ -445,7 +445,7 @@ BOOL gIsFirstMyPositionMode = YES;
{
case location::NotFollowNoPosition:
{
BOOL const hasLocation = [MWMLocationManager lastLocation];
BOOL const hasLocation = [MWMLocationManager lastLocation] != nil;
if (hasLocation || (gIsFirstMyPositionMode && ![Alohalytics isFirstSession]))
{
GetFramework().SwitchMyPositionNextMode();