1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fixed minimap memory leak

This commit is contained in:
Břetislav Štec 2015-07-19 01:35:47 +02:00 committed by kwolekr
parent 9bc0241e44
commit 88a6b9f52d
4 changed files with 16 additions and 8 deletions

View file

@ -104,14 +104,16 @@ public:
// Returns true if anything has been changed.
bool animate(bool faraway, float time, int crack, u32 daynight_ratio);
scene::SMesh* getMesh()
scene::SMesh *getMesh()
{
return m_mesh;
}
MinimapMapblock* getMinimapMapblock()
MinimapMapblock *moveMinimapMapblock()
{
return m_minimap_mapblock;
MinimapMapblock *p = m_minimap_mapblock;
m_minimap_mapblock = NULL;
return p;
}
bool isAnimationForced() const