Skip to content

Commit 919d048

Browse files
committed
fix(SetIncrementGlobalVariable.cpp): change condition from checking if player's vehicle is not null to checking if player's vehicle is equal to the project vehicle to fix incorrect logic
1 parent d2d0b68 commit 919d048

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/LDYOM_R/Data/SetIncrementGlobalVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ ktwait SetIncrementGlobalVariable::execute(Scene *scene, Result &result, ktcoro_
242242
co_return;
243243
}
244244

245-
if (FindPlayerPed()->m_pVehicle != nullptr) {
245+
if (FindPlayerPed()->m_pVehicle == vehicle->getProjectVehicle().value()) {
246246
activateCallback();
247247
}
248248

0 commit comments

Comments
 (0)