File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -927,7 +927,7 @@ std::vector<std::string>
927
927
Sol2ScriptingEnvironment::GetStringListFromFunction (const std::string &function_name)
928
928
{
929
929
auto &context = GetSol2Context ();
930
- BOOST_ASSERT (context.state .lua_state () != nullptr );
930
+ BOOST_ASSERT (context.state .lua_state ());
931
931
std::vector<std::string> strings;
932
932
sol::function function = context.state [function_name];
933
933
if (function.valid ())
@@ -943,7 +943,7 @@ Sol2ScriptingEnvironment::GetStringListFromTable(const std::string &table_name)
943
943
auto &context = GetSol2Context ();
944
944
BOOST_ASSERT (context.state .lua_state () != nullptr );
945
945
std::vector<std::string> strings;
946
- if (context.profile_table [table_name] == nullptr )
946
+ if (context.profile_table [table_name])
947
947
{
948
948
return strings;
949
949
}
You can’t perform that action at this time.
0 commit comments