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

This commit is contained in:
baldurk
2015-10-06 00:51:41 +02: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();