From 9ec3f1b89d7f70bb516cacccd933f264da72b3b0 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 26 Jun 2011 21:00:03 -0400 Subject: [PATCH] Fixed TF2_RemoveCondition not always removing conditions (bug 4981, r=asherkin). --- extensions/tf2/natives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tf2/natives.cpp b/extensions/tf2/natives.cpp index 86bd9f1e..41e868fc 100644 --- a/extensions/tf2/natives.cpp +++ b/extensions/tf2/natives.cpp @@ -300,7 +300,7 @@ cell_t TF2_RemoveCondition(IPluginContext *pContext, const cell_t *params) vptr += sizeof(void *); *(int *)vptr = params[2]; vptr += sizeof(int); - *(bool *)vptr = false; + *(bool *)vptr = true; pWrapper->Execute(vstk, NULL);