From f6c74dfb8b5aef9a82e8a8ae1d26d199ec81539d Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 14 Nov 2023 19:17:29 +0300 Subject: [PATCH] Minor fix --- src/coders/toml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coders/toml.cpp b/src/coders/toml.cpp index 25c8f979..74338ad4 100644 --- a/src/coders/toml.cpp +++ b/src/coders/toml.cpp @@ -47,7 +47,7 @@ string Section::getName() const { const Field* Section::field(std::string name) const { auto found = fields.find(name); - if (found == nullptr) { + if (found == fields.end()) { return nullptr; } return &found->second;