WritePrimitive would spam a warning when snapshots got bigger than 512 and it got resized.

This commit is contained in:
Jocke
2016-03-02 10:59:03 +01:00
parent aadfdfdd90
commit cfba8efd24
+1 -1
View File
@@ -24,7 +24,7 @@ public:
{
// Check if we are trying to add more than the package can fit.
if (m_MaxPacketSize < m_Offset + sizeof(T)) {
LOG_WARNING("Packet AddPrimitive(): You are trying to add more than we have allocated for! New size is %i bytes\n", m_MaxPacketSize*2);
//LOG_WARNING("Packet AddPrimitive(): You are trying to add more than we have allocated for! New size is %i bytes\n", m_MaxPacketSize*2);
resizeData();
}
memcpy(m_Data + m_Offset, &val, sizeof(T));