From aaed751bf4430bf4b9b30cef532b8753b9f639ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:48:31 +0500 Subject: Replace most of C strings with string_view --- game/client/world/voxel_sounds.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/client/world') diff --git a/game/client/world/voxel_sounds.cc b/game/client/world/voxel_sounds.cc index 235a851..71ea1fc 100644 --- a/game/client/world/voxel_sounds.cc +++ b/game/client/world/voxel_sounds.cc @@ -9,7 +9,7 @@ constexpr static std::size_t NUM_SURFACES = static_cast(world::voxe static std::vector> footsteps_sounds[NUM_SURFACES]; static std::mt19937_64 randomizer; -static void add_footsteps_effect(world::voxel_surface surface, const char* name) +static void add_footsteps_effect(world::voxel_surface surface, std::string_view name) { if(auto effect = resource::load(name)) { auto surface_index = static_cast(surface); -- cgit