Skip to content

Commit df9b421

Browse files
committed
review
1 parent a3521c6 commit df9b421

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaPedDefs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2495,7 +2495,7 @@ bool CLuaPedDefs::SetPedExitVehicle(CClientPed* pPed)
24952495
return pPed->ExitVehicle();
24962496
}
24972497

2498-
bool CLuaPedDefs::killPedTask(CClientPed* ped, std::string taskType, uint8_t taskNumber, bool gracefully)
2498+
bool CLuaPedDefs::killPedTask(CClientPed* ped, std::string taskType, std::uint8_t taskNumber, bool gracefully) noexcept
24992499
{
25002500
if (taskType == "primary") // PRIMARY
25012501
{
@@ -2505,4 +2505,6 @@ bool CLuaPedDefs::killPedTask(CClientPed* ped, std::string taskType, uint8_t tas
25052505
{
25062506
return ped->KillTaskSecondary(taskNumber, gracefully);
25072507
}
2508+
2509+
return false;
25082510
}

Client/mods/deathmatch/logic/luadefs/CLuaPedDefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ class CLuaPedDefs : public CLuaDefs
116116
static bool IsPedBleeding(CClientPed* ped);
117117
static bool SetPedBleeding(CClientPed* ped, bool bleeding);
118118

119-
static bool killPedTask(CClientPed* ped, std::string taskType, uint8_t taskNumber, bool gracefully);
119+
static bool killPedTask(CClientPed* ped, std::string taskType, std::uint8_t taskNumber, bool gracefully) noexcept;
120120
};

0 commit comments

Comments
 (0)