Skip to content

Commit 349a415

Browse files
committed
Forgot to set a return value for onPickupPickAttempt
1 parent 93a0fad commit 349a415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VCMP-LUA/vcmpWrap/vcmpCallbacks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ void RegisterVCMPCallbacks() {
10391039
spdlog::debug("OnPickupPickAttempt");
10401040

10411041
auto handlers = EventManager::GetHandlers("onPickupPickAttempt");
1042-
if (handlers.size() == 0) return;
1042+
if (handlers.size() == 0) return 1;
10431043
uint8_t ret = 1;
10441044
try {
10451045
Pickup* pickup = Pickup::Get(pickupId);

0 commit comments

Comments
 (0)