mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 03:09:13 +00:00
Get rid of most _alloca use and remove ALLOCA().
This commit is contained in:
@ -1084,7 +1084,7 @@ void NetCommSendMsg (
|
||||
msg->SetPlayerID(NetCommGetPlayer()->playerInt);
|
||||
|
||||
unsigned msgSize = msg->GetPackSize();
|
||||
uint8_t * buf = ALLOCA(uint8_t, msgSize);
|
||||
uint8_t * buf = (uint8_t *)malloc(msgSize);
|
||||
msg->PokeBuffer((char *)buf, msgSize);
|
||||
|
||||
switch (msg->GetNetProtocol()) {
|
||||
@ -1106,6 +1106,8 @@ void NetCommSendMsg (
|
||||
|
||||
DEFAULT_FATAL(msg->GetNetProtocol());
|
||||
}
|
||||
|
||||
free(buf);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
Reference in New Issue
Block a user