From 74ac9540cf909639833171b4bd7d27d9857d752c Mon Sep 17 00:00:00 2001 From: Greyscale Date: Thu, 31 Dec 2009 11:04:03 -0800 Subject: [PATCH] Changed to error cases to be fatal to prevent further errors. --- src/zr/weapons/weapons.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index b251325..e3e4a76 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -188,9 +188,7 @@ WeaponsLoad() // Unexpected error, stop plugin. if (!success) { - LogEvent(false, LogType_Error, LOG_CORE_EVENTS, LogModule_Weapons, "Config Validation", "Unexpected error encountered loading: %s", pathweapons); - - return; + LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Weapons, "Config Validation", "Unexpected error encountered loading: %s", pathweapons); } // Validate weapons config. @@ -227,7 +225,7 @@ WeaponsCacheData() 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];