Skip to content

Commit

Permalink
silence Spring.ValidUnitID complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Mar 7, 2016
1 parent e5237f6 commit b75d588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Lua/LuaSyncedRead.cpp
Expand Up @@ -2584,7 +2584,7 @@ int LuaSyncedRead::GetProjectilesInRectangle(lua_State* L)

int LuaSyncedRead::ValidUnitID(lua_State* L)
{
lua_pushboolean(L, ParseUnit(L, __FUNCTION__, 1) != nullptr);
lua_pushboolean(L, lua_isnumber(L, 1) && ParseUnit(L, __FUNCTION__, 1) != nullptr);
return 1;
}

Expand Down

1 comment on commit b75d588

@FLOZi
Copy link
Contributor

@FLOZi FLOZi commented on b75d588 Mar 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Domo arigato

Please sign in to comment.