From 72bfe9c40b5e04be57c73eb7f3801a901dbc3085 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Wed, 16 Mar 2022 01:56:00 +0100 Subject: [PATCH] Dont try to load 'white' material --- src/client/component/materials.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/component/materials.cpp b/src/client/component/materials.cpp index 3ca18c5d..287238c0 100644 --- a/src/client/component/materials.cpp +++ b/src/client/component/materials.cpp @@ -97,6 +97,11 @@ namespace materials game::Material* try_load_material(const std::string& name) { + if (name == "white") + { + return nullptr; + } + try { return load_material(name);