Fixed regression in FindEntityByClassname from bug 4899 (bug 4941, r=predcrab).
authorJohn Schoenick <john@pointysoftware.net>
Wed Jun 01 20:36:16 2011 -0400 (2011-06-01)
changeset 3292f428ffc8a3fe
parent 3291 1be149cf4e89
child 3293 f688cf4a4201
Fixed regression in FindEntityByClassname from bug 4899 (bug 4941, r=predcrab).
extensions/sdktools/vnatives.cpp
     1.1 --- a/extensions/sdktools/vnatives.cpp	Wed May 25 21:10:18 2011 -0400
     1.2 +++ b/extensions/sdktools/vnatives.cpp	Wed Jun 01 20:36:16 2011 -0400
     1.3 @@ -650,6 +650,7 @@
     1.4  				gamehelpers->ReferenceToIndex(params[1]),
     1.5  				params[1]);
     1.6  		}
     1.7 +		pEntity = (CBaseEntity *)servertools->NextEntity(pEntity);
     1.8  	}
     1.9  
    1.10  	pContext->LocalToString(params[2], &searchname);