1
0
cuberite-2a/Tools/QtBiomeVisualiser/QtChunk.cpp
madmaxoft 34b83656b3 QtBiomeVisualiser: Fixed MSVC path-crossing.
MSVC would occasionally compile the wrong CPP file - the same name, but wrong path.
2014-09-24 11:21:59 +02:00

36 lines
294 B
C++

#include "Globals.h"
#include "QtChunk.h"
Chunk::Chunk() :
m_IsValid(false)
{
}
const uchar * Chunk::getImage(void) const
{
ASSERT(m_IsValid);
return m_Image;
}
void Chunk::setImage(const Image & a_Image)
{
memcpy(m_Image, a_Image, sizeof(a_Image));
m_IsValid = true;
}