diff options
Diffstat (limited to '')
-rw-r--r-- | source/cPlayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index a5e2b7565..01c99f1dc 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -463,7 +463,10 @@ void cPlayer::CloseWindow(char a_WindowType) void cPlayer::SetLastBlockActionTime()
{
- m_LastBlockActionTime = cRoot::Get()->GetWorld()->GetTime();
+ if (m_World != NULL)
+ {
+ m_LastBlockActionTime = m_World->GetTime();
+ }
}
|