diff --git a/apps/openmw/mwworld/timestamp.cpp b/apps/openmw/mwworld/timestamp.cpp index ffb1cacb86..82a247a214 100644 --- a/apps/openmw/mwworld/timestamp.cpp +++ b/apps/openmw/mwworld/timestamp.cpp @@ -2,6 +2,7 @@ #include #include +#include #include @@ -10,8 +11,8 @@ namespace MWWorld TimeStamp::TimeStamp (float hour, int day) : mHour (hour), mDay (day) { - if (hour<0 || hour>=24 || day<0) - throw std::runtime_error ("invalid time stamp"); + if (hour < 0 || hour >= 24) + throw std::runtime_error("invalid time stamp hour: " + std::to_string(hour)); } float TimeStamp::getHour() const