Network - Fixed bugs
This commit is contained in:
parent
cbf3c7db8f
commit
7c029a5242
|
@ -32,7 +32,6 @@ struct CustomNetProtocol::PrivateData
|
|||
attributes[i->first] = i->second;
|
||||
}
|
||||
}
|
||||
attributes = o.attributes;
|
||||
}
|
||||
~PrivateData()
|
||||
{
|
||||
|
|
|
@ -35,6 +35,7 @@ struct Translator::PrivateData
|
|||
auto end = ((MyCastingStruct*)protocol.privateData)->attributes.end();
|
||||
|
||||
size = 4; //size(int)
|
||||
message.SetSize(0);
|
||||
message.PackInt(size, bytes);
|
||||
|
||||
//Find all the data types
|
||||
|
|
|
@ -44,6 +44,7 @@ void OysterByte::Resize(unsigned int cap)
|
|||
{
|
||||
delete[] byteArray;
|
||||
byteArray = new unsigned char[cap];
|
||||
capacity = cap;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue