summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/player-input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player-input.cpp b/src/player-input.cpp
index 6eb157c..811fb3e 100644
--- a/src/player-input.cpp
+++ b/src/player-input.cpp
@@ -639,7 +639,7 @@ void pke_input_deactivate_set(pke_input_action_set_handle handle) {
break;
}
}
- if (index != -1) {
+ if (index == -1) {
fprintf(stderr, "[pke_input] Attempt to deactivate a non-active set.\n");
return;
}