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();