Skip to content

Commit e704860

Browse files
committed
wave: Fix constructor
1 parent 096249c commit e704860

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

include/Wave.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ class Wave : public WaveUnmanaged {
1616
public:
1717
using WaveUnmanaged::WaveUnmanaged;
1818

19-
Wave(const Wave& other) { set(other.Copy()); }
19+
Wave(const Wave& other) : WaveUnmanaged(other.Copy()) {}
2020

21-
Wave(Wave&& other) noexcept {
22-
set(other);
21+
Wave(Wave&& other) noexcept : WaveUnmanaged(other) {
2322
other.frameCount = 0;
2423
other.sampleRate = 0;
2524
other.sampleSize = 0;

tests/raylib_cpp_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "raylib-assert.h"
21
#include "raylib-cpp.hpp"
2+
#include "raylib-assert.h"
33
#include <string>
44
#include <vector>
55

0 commit comments

Comments
 (0)