Core/Misc: Fix a couple of warnings, some of them performance related
Errors were found using Cppcheck, open-source static analysis tool
This commit is contained in:
1 parent
e0a5aabaf7
commit
a509aea659
18 files changed
+25
-31
No files matched your search
@@ -162,9 +162,11 @@ namespace Movement
|
||||
{
|
||||
if (_transformForTransport)
|
||||
{
|
||||
float unused = 0.0f;
|
||||
if (TransportBase* transport = _owner.GetDirectTransport())
|
||||
transport->CalculatePassengerOffset(input.x, input.y, input.z, unused);
|
||||
{
|
||||
float unused = 0.0f; // need reference
|
||||
transport->CalculatePassengerOffset(input.x, input.y, input.z, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
return input;
|
||||
|
||||
Reference in new issue
Block a user