Don't copy debug string if there's nothing there

This commit is contained in:
baldurk
2016-02-07 18:42:22 +01:00
parent f930d6f7eb
commit 78fc832722
+2 -1
View File
@@ -260,7 +260,8 @@ Chunk::Chunk(Serialiser *ser, uint32_t chunkType, bool temporary)
memcpy(m_Data, ser->GetRawPtr(0), m_Length);
m_DebugStr = ser->GetDebugStr();
if(ser->GetDebugText())
m_DebugStr = ser->GetDebugStr();
ser->Rewind();