From 49eee8c04ef112cb97dde27d24e4fb6626db6ddb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 4 Jul 2014 16:55:33 -0700 Subject: [PATCH] Fix regression in methodmap tagging. --- sourcepawn/compiler/sc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index ad315fd2..2d45de8e 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -703,7 +703,7 @@ int pc_addtag_flags(char *name, int flags) tag=(int)(ptr->value & TAGMASK); if (strcmp(name,ptr->name)==0) { ptr->value |= flags; - return tag; /* tagname is known, return its sequence number */ + return ptr->value & TAGMASK; } tag &= ~TAGFLAGMASK; if (tag>last)