aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/content_cao.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
index e7f9db845..7c349244f 100644
--- a/src/client/content_cao.cpp
+++ b/src/client/content_cao.cpp
@@ -894,6 +894,9 @@ u16 GenericCAO::getLightPosition(v3s16 *pos)
void GenericCAO::updateMarker()
{
+ if (!m_client->getMinimap())
+ return;
+
if (!m_prop.show_on_minimap) {
if (m_marker)
m_client->getMinimap()->removeMarker(&m_marker);