mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-04 05:15:51 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -1412,7 +1412,7 @@ unsigned int GroupObject::getSecondsLeftOnGroupPickup() const
|
||||
std::pair<int32, int32> const & groupPickupTimer = m_groupPickupTimer.get();
|
||||
if ((groupPickupTimer.first > 0) && (groupPickupTimer.second > 0))
|
||||
{
|
||||
time_t const timeNow = ::time(NULL);
|
||||
time_t const timeNow = ::time(nullptr);
|
||||
if (groupPickupTimer.second > timeNow)
|
||||
return (groupPickupTimer.second - (int)timeNow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user