Skip to content
Permalink
Browse files

ContentCAO: Fix segfault when minimap is disabled

  • Loading branch information
SmallJoker committed Nov 8, 2020
1 parent 8c1871f commit c940a57a384b1a75730776906451078d25c5aa52
Showing with 3 additions and 0 deletions.
  1. +3 −0 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);

0 comments on commit c940a57

Please sign in to comment.
You can’t perform that action at this time.