diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-08 19:12:37 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-08 19:12:37 +0100 |
commit | ac8a58a2a16118ea4c40fcc533c3420edde45122 (patch) | |
tree | f93b591f164c051003788c7edaa55fa9dd50cd82 /src/crepe/api/Texture.cpp | |
parent | ba713ba89127e3b4a24f204f67bccaa9c2972916 (diff) |
fixed all the RAII
Diffstat (limited to 'src/crepe/api/Texture.cpp')
-rw-r--r-- | src/crepe/api/Texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/Texture.cpp b/src/crepe/api/Texture.cpp index 1eac655..c31f704 100644 --- a/src/crepe/api/Texture.cpp +++ b/src/crepe/api/Texture.cpp @@ -26,7 +26,7 @@ Texture::~Texture() { void Texture::load(unique_ptr<Asset> res) { SDLContext & ctx = SDLContext::get_instance(); - this->texture.reset(ctx.texture_from_path(res->canonical())); + this->texture = std::move(ctx.texture_from_path(res->canonical())); } int Texture::get_width() const{ |