Update cat_ipc_exec too

This commit is contained in:
Itsi Adam 2020-05-23 15:44:04 +01:00
parent feb09d6a57
commit 275b0283d0

View File

@ -80,7 +80,7 @@ CatCommand exec("ipc_exec", "Execute command (first argument = bot ID)", [](cons
logging::Info("Target id is NaN!");
return;
}
if (target_id == 0 || target_id > 31)
if (target_id < 0 || target_id > 255)
{
logging::Info("Invalid target id: %u", target_id);
return;
@ -133,7 +133,7 @@ CatCommand debug_get_ingame_ipc("ipc_debug_dump_server", "Show other bots on ser
int count = 0;
unsigned highest = 0;
std::vector<unsigned> botlist{};
for (unsigned i = 1; i < cat_ipc::max_peers; i++)
for (unsigned i = 0; i < cat_ipc::max_peers; i++)
{
if (!ipc::peer->memory->peer_data[i].free)
{