forked from teamnwah/openmw-tes3coop
fixed time stamp operator
This commit is contained in:
parent
91f0eed9c4
commit
6eb9f15b6d
1 changed files with 2 additions and 2 deletions
|
@ -76,12 +76,12 @@ namespace MWWorld
|
||||||
|
|
||||||
TimeStamp operator+ (const TimeStamp& stamp, double hours)
|
TimeStamp operator+ (const TimeStamp& stamp, double hours)
|
||||||
{
|
{
|
||||||
return TimeStamp (stamp) + hours;
|
return TimeStamp (stamp) += hours;
|
||||||
}
|
}
|
||||||
|
|
||||||
TimeStamp operator+ (double hours, const TimeStamp& stamp)
|
TimeStamp operator+ (double hours, const TimeStamp& stamp)
|
||||||
{
|
{
|
||||||
return TimeStamp (stamp) + hours;
|
return TimeStamp (stamp) += hours;
|
||||||
}
|
}
|
||||||
|
|
||||||
double operator- (const TimeStamp& left, const TimeStamp& right)
|
double operator- (const TimeStamp& left, const TimeStamp& right)
|
||||||
|
|
Loading…
Reference in a new issue