Skip to content

Commit eb293db

Browse files
author
Pavel Kovalenko
committed
Add weather editor related BUG (AV in CEnvironment::SetGameTime).
1 parent 67d5d8e commit eb293db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrEngine/Environment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void CEnvironment::ChangeGameTime(float game_time)
259259
void CEnvironment::SetGameTime(float game_time, float time_factor)
260260
{
261261
#ifndef _EDITOR
262-
if (m_paused)
262+
if (m_paused) // BUG nitrocaster: g_pGameLevel may be null (game not started) -> crash
263263
{
264264
g_pGameLevel->SetEnvironmentGameTimeFactor(iFloor(fGameTime*1000.f), fTimeFactor);
265265
return;

0 commit comments

Comments
 (0)