From cbb4937ee6a56349bf3948e6dd9cec0a875f2318 Mon Sep 17 00:00:00 2001 From: sogladev Date: Sat, 30 May 2026 13:10:55 +0200 Subject: [PATCH] fix(Scripts/Commands): change waypoint script parameter type (#26026) --- src/server/scripts/Commands/cs_wp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Commands/cs_wp.cpp b/src/server/scripts/Commands/cs_wp.cpp index efd07cf488..bc1a123871 100644 --- a/src/server/scripts/Commands/cs_wp.cpp +++ b/src/server/scripts/Commands/cs_wp.cpp @@ -340,7 +340,7 @@ public: uint32 a2, a3, a4, a5, a6; float a8, a9, a10, a11; - char const* a7; + std::string a7; WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPT_BY_ID); stmt->SetData(0, id); @@ -362,7 +362,7 @@ public: a4 = fields[2].Get(); a5 = fields[3].Get(); a6 = fields[4].Get(); - a7 = fields[5].Get().c_str(); + a7 = fields[5].Get(); a8 = fields[6].Get(); a9 = fields[7].Get(); a10 = fields[8].Get();