From 5b7e440ff79b92bc63e060b75775f2456d1d5dd9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 21 Mar 2020 01:42:43 -0400 Subject: [PATCH] CBomb: Make file-scope material filter constexpr Allows the data to be placed into the read-only segment. --- Runtime/Weapon/CBomb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Weapon/CBomb.cpp b/Runtime/Weapon/CBomb.cpp index 9f6216dfc..4ae123bf3 100644 --- a/Runtime/Weapon/CBomb.cpp +++ b/Runtime/Weapon/CBomb.cpp @@ -62,7 +62,7 @@ void CBomb::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManag CActor::AcceptScriptMsg(msg, uid, mgr); } -static CMaterialFilter kSolidFilter = +constexpr CMaterialFilter kSolidFilter = CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {EMaterialTypes::Character, EMaterialTypes::Player, EMaterialTypes::ProjectilePassthrough}); void CBomb::Think(float dt, urde::CStateManager& mgr) {