From 50893667db7d158918a2fd2dd30f68591b4d46ac Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 10 Apr 2020 21:08:19 +0100 Subject: MoveToWorld must always be provided a world --- src/NetherPortalScanner.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/NetherPortalScanner.h') diff --git a/src/NetherPortalScanner.h b/src/NetherPortalScanner.h index 3d285053a..b6d66a088 100644 --- a/src/NetherPortalScanner.h +++ b/src/NetherPortalScanner.h @@ -15,7 +15,7 @@ class cWorld; class cNetherPortalScanner : public cChunkStay { public: - cNetherPortalScanner(cEntity & a_MovingEntity, cWorld * a_DestinationWorld, Vector3d a_DestPosition, int a_MaxY); + cNetherPortalScanner(cEntity & a_MovingEntity, cWorld & a_DestinationWorld, Vector3d a_DestPosition, int a_MaxY); virtual void OnChunkAvailable(int a_ChunkX, int a_ChunkY) override; virtual bool OnAllChunksAvailable(void) override; virtual void OnDisabled(void) override; @@ -55,7 +55,7 @@ private: cWorld & m_SourceWorld; /** The world we're moving the entity to. */ - cWorld * m_World; + cWorld & m_World; /** Whether we found a portal during the loading of the chunks. */ bool m_FoundPortal; -- cgit v1.2.3