Fixed files not fclose()ing

Module no longer reloads on mapchange
This commit is contained in:
David Anderson
2004-09-17 01:19:03 +00:00
parent e0af113cac
commit ab2794d4bd
2 changed files with 9 additions and 3 deletions

View File

@ -39,9 +39,15 @@ void OnAmxxAttach()
MF_AddNatives(geoip_natives);
}
void OnAmxxDetach()
{
GeoIP_delete(gi);
gi = NULL;
}
AMX_NATIVE_INFO geoip_natives[] = {
{"geoip_code2", amx_geoip_code2},
{"geoip_code3", amx_geoip_code3},
{"geoip_country", amx_geoip_country},
{NULL, NULL},
};
};