fix (core): Cast sub-expression to wider-type (#12430)
sub-expression may overflow before being added to a wider type. Possible fix for a segmentation fault being reported in the chat.
This commit is contained in:
parent
3771a7120d
commit
5dd22f822d
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ InstanceSave* InstanceSaveMgr::AddInstanceSave(uint32 mapId, uint32 instanceId,
|
|||
}
|
||||
else
|
||||
{
|
||||
resetTime = GameTime::GetGameTime().count() + 3 * DAY; // normals expire after 3 days even if someone is still bound to them, cleared on startup
|
||||
resetTime = GameTime::GetGameTime().count() + static_cast<long long>(3) * DAY; // normals expire after 3 days even if someone is still bound to them, cleared on startup
|
||||
extendedResetTime = 0;
|
||||
}
|
||||
InstanceSave* save = new InstanceSave(mapId, instanceId, difficulty, resetTime, extendedResetTime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue