From 7367f29cb4e0833c7e0b08c2532471aa86edad74 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 3 Jun 2006 21:44:35 +0000 Subject: [PATCH] fixed a bug where defclasslib would search for lib instead of class --- amxmodx/libraries.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amxmodx/libraries.cpp b/amxmodx/libraries.cpp index 284b2b5c..44263c2f 100644 --- a/amxmodx/libraries.cpp +++ b/amxmodx/libraries.cpp @@ -218,10 +218,8 @@ LibError RunLibCommand(const LibDecoder *enc) if (enc->cmd == LibCmd_ExpectLib) expect = LibType_Library; - else if (enc->cmd == LibCmd_ExpectClass) - expect = LibType_Class; else - expect = LibType_Library; + expect = LibType_Class; /** see if it exists */ for (; iter != end; iter++)