diff --git a/src/client/component/materials.cpp b/src/client/component/materials.cpp index 1b0b17c5..99b22a45 100644 --- a/src/client/component/materials.cpp +++ b/src/client/component/materials.cpp @@ -49,8 +49,7 @@ namespace materials game::Material* create_material(const std::string& name, const std::string& data) { - const auto white = *reinterpret_cast(SELECT_VALUE(0x141F3D860, 0x14282C330)); - + const auto white = material_register_handle_hook.invoke("white"); const auto material = utils::memory::get_allocator()->allocate(); const auto texture_table = utils::memory::get_allocator()->allocate(); const auto image = utils::memory::get_allocator()->allocate();