Skip to content

Commit

Permalink
Add weather editor related BUG (AV in CEnvironment::SetGameTime).
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Oct 20, 2014
1 parent 67d5d8e commit eb293db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrEngine/Environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void CEnvironment::ChangeGameTime(float game_time)
void CEnvironment::SetGameTime(float game_time, float time_factor)
{
#ifndef _EDITOR
if (m_paused)
if (m_paused) // BUG nitrocaster: g_pGameLevel may be null (game not started) -> crash
{
g_pGameLevel->SetEnvironmentGameTimeFactor(iFloor(fGameTime*1000.f), fTimeFactor);
return;
Expand Down

0 comments on commit eb293db

Please sign in to comment.