fix(player_command): execution failure (#2503)

This commit is contained in:
Aure7138 2023-12-11 15:42:13 +08:00 committed by GitHub
parent 461ce57ac6
commit e6c4a6a1d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace big
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
{
g_pickup_service->give_player_health(player->id());
g_pickup_service->give_player_ammo(player->id());
}
};

View File

@ -17,7 +17,7 @@ namespace big
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
{
g_pickup_service->give_armour(player->id());
g_pickup_service->give_player_armour(player->id());
}
};

View File

@ -36,7 +36,7 @@ namespace big
g_fiber_pool->queue_job([this, args, ctx] {
command_arguments new_args(m_num_args.value(), args);
if (g_player_service->get_self()->id() == args.get<int>(0))
if (g_player_service->get_self()->id() == args.get<uint8_t>(0))
{
execute(g_player_service->get_self(), new_args, ctx);
return;