Skip to content

Commit

Permalink
Require incoming CL packets have at least one argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrezm committed Apr 9, 2022
1 parent d64e006 commit be20513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ void AOApplication::_p_handle_server_packet(DRPacket p_packet)
}
else if (l_header == "CL")
{
m_courtroom->handle_clock(l_content.at(1));
if (is_courtroom_constructed && l_content.size() > 0)
m_courtroom->handle_clock(l_content.at(1));
}
else if (l_header == "GM")
{
Expand Down

0 comments on commit be20513

Please sign in to comment.