Skip to content

Commit

Permalink
Use not empty instead of size
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good authored Oct 22, 2023
1 parent 11bf9f3 commit c2d7dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/lua/lua_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void CLuaAction::ID(uint32 actionTargetID, uint32 newActionTargetID)
// Get the first (primary) target's long ID, if available.
uint32 CLuaAction::getPrimaryTargetID()
{
if (m_PLuaAction->actionLists.size() > 0)
if (!m_PLuaAction->actionLists.empty())
{
return m_PLuaAction->actionLists[0].ActionTargetID;
}
Expand Down

0 comments on commit c2d7dec

Please sign in to comment.