Skip to content

Commit 0dfbad6

Browse files
committed
Fix lerp
1 parent 8b70ab4 commit 0dfbad6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Robocode/Lerp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Robocode/Lerp.h>
22

3-
Lerp::Lerp(const double v, const std::span<const double> x, const std::optional<double> z)
3+
Lerp::Lerp(const std::span<const double> x, const double v, const std::optional<double> z)
44
{
55
if (x.empty())
66
{

src/Robocode/Lerp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Lerp final
1414
public:
1515

1616
Lerp(){};
17-
Lerp(const double v, const std::span<const double> x, const std::optional<double> z = std::nullopt);
17+
Lerp(const std::span<const double> x, const double v, const std::optional<double> z = std::nullopt);
1818
Lerp(const Lerp& other);
1919
Lerp& operator=(const Lerp& other);
2020

@@ -30,6 +30,6 @@ class Lerp final
3030
int u;
3131
std::optional<double> z;
3232
}
33-
config;
33+
config{};
3434

3535
};

0 commit comments

Comments
 (0)