Fixed a bug noted by mahnsawce
This commit is contained in:
		@@ -110,8 +110,7 @@ public:
 | 
				
			|||||||
	bool Connect(const char* connectname,const char* ipaddress);
 | 
						bool Connect(const char* connectname,const char* ipaddress);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	inline bool IsBot(){
 | 
						inline bool IsBot(){
 | 
				
			||||||
		const char* auth= (*g_engfuncs.pfnGetPlayerAuthId)(pEdict);
 | 
							return ((pEdict->v.flags & FL_FAKECLIENT)?true:false);
 | 
				
			||||||
		return ( auth && !strcmp( auth , "BOT" ) );
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	inline bool IsAlive(){
 | 
						inline bool IsAlive(){
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -628,6 +628,8 @@ const char *MNF_GetAmxScriptName(int id)
 | 
				
			|||||||
	while (iter && id--)
 | 
						while (iter && id--)
 | 
				
			||||||
		++iter;
 | 
							++iter;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ((*iter) == NULL)
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
	return (*iter).getName();
 | 
						return (*iter).getName();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user