Skip to content

Commit ede4ff2

Browse files
committed
refactor(native_customvotes): remove unnecessary check in config reload
No version bump.
1 parent fb9b7ec commit ede4ff2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Plugins/native_customvotes/scripting/native_customvotes.sp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ public Action Command_ReloadConfig(int client, int args)
103103

104104
public void ReloadConfig()
105105
{
106-
if (g_kvConfig != null)
107-
CloseHandle(g_kvConfig);
106+
delete g_kvConfig;
108107

109108
char configFilePath[255];
110109
BuildPath(Path_SM, configFilePath, sizeof(configFilePath), "configs/native_customvotes.cfg");

0 commit comments

Comments
 (0)