mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Fix
This commit is contained in:
parent
2984da422a
commit
2f82619405
@ -80,7 +80,7 @@ namespace scripting
|
||||
return result->second;
|
||||
}
|
||||
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
script_function find_function(const std::string& name, const bool prefer_global)
|
||||
|
@ -130,7 +130,7 @@ namespace scripting::lua
|
||||
? scripting::find_token_id(field.as<std::string>())
|
||||
: field.as<int>();
|
||||
|
||||
if (id == -1)
|
||||
if (!id)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -159,7 +159,7 @@ namespace scripting::lua
|
||||
? scripting::find_token_id(field.as<std::string>())
|
||||
: field.as<int>();
|
||||
|
||||
if (id == -1)
|
||||
if (!id)
|
||||
{
|
||||
return sol::lua_value{s};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user