diff --git a/Source/Render/Textures/BitmapTextureCache.cpp b/Source/Render/Textures/BitmapTextureCache.cpp index 9f4fdbaf3..7a858fa68 100644 --- a/Source/Render/Textures/BitmapTextureCache.cpp +++ b/Source/Render/Textures/BitmapTextureCache.cpp @@ -14,15 +14,6 @@ BitmapTextureCache::~BitmapTextureCache() { this->Clear(); } -// INLINED -void BitmapTextureCache::Clear() { - for (CTexture* texture : this->m_textures) { - delete texture; - } - - this->m_textures.clear(); -} - // OFFSET: 0x00548380 // FUNCTION: fn_01854 void BitmapTextureCache::Update(BitmapPixels& bitmap, CRenderSystemBase& system) { diff --git a/Source/Render/Textures/BitmapTextureCache.h b/Source/Render/Textures/BitmapTextureCache.h index 4d758dd35..80cd4d1d1 100644 --- a/Source/Render/Textures/BitmapTextureCache.h +++ b/Source/Render/Textures/BitmapTextureCache.h @@ -1,11 +1,12 @@ #ifndef RAGNAROK_SOURCE_RENDER_TEXTURES_BITMAPTEXTURECACHE_H #define RAGNAROK_SOURCE_RENDER_TEXTURES_BITMAPTEXTURECACHE_H +#include "Render/Textures/Texture.h" + #include #include struct BitmapPixels; -class CTexture; class CRenderSystemBase; class BitmapTextureCache { @@ -22,6 +23,15 @@ protected: /* 0028 */ bool m_alpha; }; +// INLINED +inline void BitmapTextureCache::Clear() { + for (CTexture* texture : this->m_textures) { + delete texture; + } + + this->m_textures.clear(); +} + #if defined(_WIN32) && !defined(_WIN64) static_assert(sizeof(BitmapTextureCache) == 12); #endif