1
0

Fancy stuff with constant references

This commit is contained in:
Tiger Wang 2014-02-13 19:57:23 +00:00
parent 6ed4f476ce
commit c0e7d6fec9

View File

@ -198,7 +198,7 @@ bool cHopperEntity::MovePickupsIn(cChunk & a_Chunk, Int64 a_CurrentTick)
public cEntityCallback
{
public:
cHopperPickupSearchCallback(const Vector3i a_Pos, cItemGrid & a_Contents) :
cHopperPickupSearchCallback(const Vector3i & a_Pos, cItemGrid & a_Contents) :
m_Pos(a_Pos),
m_bFoundPickupsAbove(false),
m_Contents(a_Contents)
@ -265,7 +265,7 @@ bool cHopperEntity::MovePickupsIn(cChunk & a_Chunk, Int64 a_CurrentTick)
}
protected:
const Vector3i m_Pos;
Vector3i m_Pos;
bool m_bFoundPickupsAbove;
cItemGrid & m_Contents;
};