mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
match setPayload() behavior
This commit is contained in:
parent
b3bcda2227
commit
65625c8e76
1 changed files with 1 additions and 3 deletions
|
@ -156,9 +156,7 @@ int main(int argc, const char* argv[]) {
|
|||
qDebug("Reading Voxel Server Configuration.\n");
|
||||
qDebug() << " config: " << voxelServerConfig << "\n";
|
||||
int payloadLength = strlen(voxelServerConfig) + sizeof(char);
|
||||
uchar* payload = new uchar[payloadLength];
|
||||
memcpy(payload, voxelServerConfig, payloadLength);
|
||||
voxelServerAssignment.setPayload(payload, payloadLength);
|
||||
voxelServerAssignment.setPayload((const uchar*)voxelServerConfig, payloadLength);
|
||||
}
|
||||
|
||||
// construct a local socket to send with our created assignments to the global AS
|
||||
|
|
Loading…
Reference in a new issue