Update player.cpp #3257
Annotations
6 warnings
lua-formatter
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, JohnnyMorganz/stylua-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
[cppcheck] src/canary_server.cpp#L330:
src/canary_server.cpp#L330
Same expression on both sides of '||' because 'datapackName!="data-canary"&&datapackName!="data-otservbr-global"' and 'datapackName!="data-otservbr-global"&&datapackName!="data-canary"' represent the same value.
|
[cppcheck] src/creatures/npcs/npcs.cpp#L88:
src/creatures/npcs/npcs.cpp#L88
Consider using std::any_of algorithm instead of a raw loop.
|
[cppcheck] src/creatures/players/grouping/familiars.cpp#L73:
src/creatures/players/grouping/familiars.cpp#L73
Consider using std::find_if algorithm instead of a raw loop.
|
[cppcheck] src/creatures/players/grouping/groups.cpp#L104:
src/creatures/players/grouping/groups.cpp#L104
Consider using std::find_if algorithm instead of a raw loop.
|
[cppcheck] src/creatures/players/vocations/vocation.cpp#L219:
src/creatures/players/vocations/vocation.cpp#L219
Consider using std::find_if algorithm instead of a raw loop.
|