diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-19 14:06:01 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-19 14:06:01 +0000 |
commit | 1b0c9ba663f210131654350f4692dcbfc70fb5cf (patch) | |
tree | 94a813b73173e6b5064a0312e3024ae20f1aebe7 /src/resources/resourcemanager.cpp | |
parent | a8a96dab91866bce0742f680260d653728e24691 (diff) | |
download | mana-1b0c9ba663f210131654350f4692dcbfc70fb5cf.tar.gz mana-1b0c9ba663f210131654350f4692dcbfc70fb5cf.tar.bz2 mana-1b0c9ba663f210131654350f4692dcbfc70fb5cf.tar.xz mana-1b0c9ba663f210131654350f4692dcbfc70fb5cf.zip |
A few random changes.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 47c4daa4..b26aeb5d 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -103,8 +103,7 @@ Resource* ResourceManager::get(const E_RESOURCE_TYPE &type, if (buffer != NULL) { // Let the music class load it - resource = reinterpret_cast<Resource*>(Music::load(buffer, - fileSize)); + resource = Music::load(buffer, fileSize); // Cleanup free(buffer); @@ -123,8 +122,7 @@ Resource* ResourceManager::get(const E_RESOURCE_TYPE &type, if (buffer != NULL) { // Let the image class load it - resource = reinterpret_cast<Resource*>(Image::load(buffer, - fileSize, flags)); + resource = Image::load(buffer, fileSize, flags); // Cleanup free(buffer); @@ -149,8 +147,7 @@ Resource* ResourceManager::get(const E_RESOURCE_TYPE &type, if (buffer != NULL) { // Let the sound effect class load it - resource = reinterpret_cast<Resource*>(SoundEffect::load( - buffer, fileSize)); + resource = SoundEffect::load(buffer, fileSize); // Cleanup free(buffer); |