Changed to error cases to be fatal to prevent further errors.
This commit is contained in:
parent
d88b824bfd
commit
74ac9540cf
@ -188,9 +188,7 @@ WeaponsLoad()
|
|||||||
// Unexpected error, stop plugin.
|
// Unexpected error, stop plugin.
|
||||||
if (!success)
|
if (!success)
|
||||||
{
|
{
|
||||||
LogEvent(false, LogType_Error, LOG_CORE_EVENTS, LogModule_Weapons, "Config Validation", "Unexpected error encountered loading: %s", pathweapons);
|
LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Weapons, "Config Validation", "Unexpected error encountered loading: %s", pathweapons);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate weapons config.
|
// Validate weapons config.
|
||||||
@ -227,7 +225,7 @@ WeaponsCacheData()
|
|||||||
|
|
||||||
if (!success)
|
if (!success)
|
||||||
{
|
{
|
||||||
LogEvent(false, LogType_Error, LOG_CORE_EVENTS, LogModule_Weapons, "Config Validation", "Unexpected error caching data from weapons config file: %s", pathweapons);
|
LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Weapons, "Config Validation", "Unexpected error caching data from weapons config file: %s", pathweapons);
|
||||||
}
|
}
|
||||||
|
|
||||||
decl String:weaponname[WEAPONS_MAX_LENGTH];
|
decl String:weaponname[WEAPONS_MAX_LENGTH];
|
||||||
|
Loading…
Reference in New Issue
Block a user