fix various build warnings and errors with clang++

This commit is contained in:
Lion Kortlepel committed 2022-11-23 09:34:50 +01:00
1 parent c51d713969
commit a44f9b3dba
2 files changed
+7 -3

No files matched your search

+2 -2
View File
@@ -98,8 +98,8 @@ public:
return mLuaStates.size();
}
std::vector<std::string> GetLuaStateNames() {
std::vector<std::string> names{};
for(auto const& [stateId, _ ] : mLuaStates) {
std::vector<std::string> names {};
for (auto const& [stateId, _] : mLuaStates) {
names.push_back(stateId);
}
return names;