(svn r25770) -Fix [Admin]: the frame of a command packet wasn't set for the packets that were sent via de admin interface

This commit is contained in:
rubidium
2013-09-14 11:34:09 +00:00
parent 54af9b06cd
commit 75cf518a7d

View File

@@ -235,7 +235,7 @@ void NetworkFreeLocalCommandQueue()
* @param cp The command that has to be distributed.
* @param owner The client that owns the command,
*/
static void DistributeCommandPacket(CommandPacket cp, const NetworkClientSocket *owner)
static void DistributeCommandPacket(CommandPacket &cp, const NetworkClientSocket *owner)
{
CommandCallback *callback = cp.callback;
cp.frame = _frame_counter_max + 1;