mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00

* Use sizeof(type) instead of sizeof(variableName) when (de)serializing data * Less usage of sizeof(variableName) while (de)serializing
20 lines
408 B
C++
20 lines
408 B
C++
#include "legosphere.h"
|
|
|
|
#include "decomp.h"
|
|
#include "misc/legostorage.h"
|
|
|
|
DECOMP_SIZE_ASSERT(LegoSphere, 0x10)
|
|
|
|
// FUNCTION: LEGO1 0x100d3770
|
|
LegoResult LegoSphere::Read(LegoStorage* p_storage)
|
|
{
|
|
LegoResult result;
|
|
if ((result = m_center.Read(p_storage)) != SUCCESS) {
|
|
return result;
|
|
}
|
|
if ((result = p_storage->Read(&m_radius, sizeof(LegoFloat))) != SUCCESS) {
|
|
return result;
|
|
}
|
|
return SUCCESS;
|
|
}
|