Network - Fixed bugs

This commit is contained in:
Pontus Fransson 2013-12-17 10:58:07 +01:00
parent cbf3c7db8f
commit 7c029a5242
3 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,6 @@ struct CustomNetProtocol::PrivateData
attributes[i->first] = i->second; attributes[i->first] = i->second;
} }
} }
attributes = o.attributes;
} }
~PrivateData() ~PrivateData()
{ {

View File

@ -35,6 +35,7 @@ struct Translator::PrivateData
auto end = ((MyCastingStruct*)protocol.privateData)->attributes.end(); auto end = ((MyCastingStruct*)protocol.privateData)->attributes.end();
size = 4; //size(int) size = 4; //size(int)
message.SetSize(0);
message.PackInt(size, bytes); message.PackInt(size, bytes);
//Find all the data types //Find all the data types

View File

@ -44,6 +44,7 @@ void OysterByte::Resize(unsigned int cap)
{ {
delete[] byteArray; delete[] byteArray;
byteArray = new unsigned char[cap]; byteArray = new unsigned char[cap];
capacity = cap;
} }
} }