diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-11 17:21:43 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-11 17:21:43 +0100 |
commit | c585731ab4557e2a03be9630a54295a3700103fc (patch) | |
tree | 1baff648eb415fbc81612077dce5c2551abf12a2 /src/crepe/manager/ResourceManager.hpp | |
parent | 4bb6e89d93596c9c53798b1b9a01c588cabfe881 (diff) | |
parent | 30c17c98e54c1534664de08ca3838c40c859d166 (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/text-component
Diffstat (limited to 'src/crepe/manager/ResourceManager.hpp')
-rw-r--r-- | src/crepe/manager/ResourceManager.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/manager/ResourceManager.hpp b/src/crepe/manager/ResourceManager.hpp index 5167d71..cf5c949 100644 --- a/src/crepe/manager/ResourceManager.hpp +++ b/src/crepe/manager/ResourceManager.hpp @@ -13,7 +13,7 @@ T & ResourceManager::get(const Asset & asset) { "cache must recieve a derivative class of Resource"); CacheEntry & entry = this->get_entry(asset); - if (entry.resource == nullptr) entry.resource = make_unique<T>(asset); + if (entry.resource == nullptr) entry.resource = make_unique<T>(asset, this->mediator); T * concrete_resource = dynamic_cast<T *>(entry.resource.get()); if (concrete_resource == nullptr) |