sourcemm/sourcemm.cpp
changeset 238 c27105949293
parent 231 1edd10b26450
child 263 13c2809e96b8
     1.1 --- a/sourcemm/sourcemm.cpp	Thu Aug 10 21:07:07 2006 +0000
     1.2 +++ b/sourcemm/sourcemm.cpp	Sun Aug 13 11:34:30 2006 +0000
     1.3 @@ -91,7 +91,7 @@
     1.4  void InitMainStates()
     1.5  {
     1.6  	char full_path[260] = {0};
     1.7 -	GetFileOfAddress(g_GameDll.factory, full_path, sizeof(full_path)-1);
     1.8 +	GetFileOfAddress((void *)g_GameDll.factory, full_path, sizeof(full_path)-1);
     1.9  	g_BinPath.assign(full_path);
    1.10  
    1.11  	//Like metamod, reload plugins at the end of the map.
    1.12 @@ -331,7 +331,7 @@
    1.13  				if (gamebin)
    1.14  				{
    1.15  					g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s/%s", lptr, ptr, SERVER_DLL);
    1.16 -				} else if (ptr[0] == NULL) {
    1.17 +				} else if (!ptr[0]) {
    1.18  					g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s/%s", lptr, "bin", SERVER_DLL);
    1.19  				} else {
    1.20  					g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s/%s/%s", lptr, ptr, "bin", SERVER_DLL);
    1.21 @@ -348,7 +348,7 @@
    1.22  					for (iter=gamedll_list.begin(); iter!=gamedll_list.end(); iter++)
    1.23  					{
    1.24  						pCheck = (*iter);
    1.25 -						if (GetFileOfAddress(pCheck->factory, buffer, sizeof(buffer)-1))
    1.26 +						if (GetFileOfAddress((void *)pCheck->factory, buffer, sizeof(buffer)-1))
    1.27  						{
    1.28  							if (UTIL_PathCmp(temp_path, buffer))
    1.29  							{