diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-12-02 17:34:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 17:34:45 +0100 |
| commit | 892a5a72cd9b25dc660671b9f4244fd842884b9f (patch) | |
| tree | fb410b4b5daa1e8a79dc9f7983c43bcd9b196e8f /core/math/audio_frame.h | |
| parent | 11d5b91462285d9fc541c20331aedcd4511908cd (diff) | |
| parent | 7da392bcc52366740394322728464e724cf20cdf (diff) | |
| download | redot-engine-892a5a72cd9b25dc660671b9f4244fd842884b9f.tar.gz | |
Merge pull request #55474 from akien-mga/copy-operators-no-reference
Diffstat (limited to 'core/math/audio_frame.h')
| -rw-r--r-- | core/math/audio_frame.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/math/audio_frame.h b/core/math/audio_frame.h index a5616b8d79..4a11b99fe8 100644 --- a/core/math/audio_frame.h +++ b/core/math/audio_frame.h @@ -124,10 +124,9 @@ struct AudioFrame { r = p_frame.r; } - _ALWAYS_INLINE_ AudioFrame &operator=(const AudioFrame &p_frame) { + _ALWAYS_INLINE_ void operator=(const AudioFrame &p_frame) { l = p_frame.l; r = p_frame.r; - return *this; } _ALWAYS_INLINE_ operator Vector2() const { |
