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[i->first] = i->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
attributes = o.attributes;
|
|
||||||
}
|
}
|
||||||
~PrivateData()
|
~PrivateData()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue