Use enum for PeepState instead of raw Number on NewsItem (#11384)

This commit is contained in:
Tulio Leao authored and GitHub committed 2020-04-21 12:33:53 +02:00
1 parent 2479256bc1
commit 12beb78377
1 file changed
+1 -1
+1 -1
View File
@@ -231,7 +231,7 @@ std::optional<CoordsXYZ> news_item_get_subject_location(int32_t type, int32_t su
if (subjectLoc->x != LOCATION_NULL)
break;
if (peep->state != 3 && peep->state != 7)
if (peep->state != PEEP_STATE_ON_RIDE && peep->state != PEEP_STATE_ENTERING_RIDE)
{
subjectLoc = std::nullopt;
break;