diff --git a/src/server/scripts/Commands/cs_modify.cpp b/src/server/scripts/Commands/cs_modify.cpp index 5a45de5cf8..d7a8f3e2ca 100644 --- a/src/server/scripts/Commands/cs_modify.cpp +++ b/src/server/scripts/Commands/cs_modify.cpp @@ -500,13 +500,13 @@ public: if (!*args) return false; - const char* mount_cstr = strtok(const_cast(args), " "); - const char* speed_cstr = strtok(NULL, " "); + char const* mount_cstr = strtok(const_cast(args), " "); + char const* speed_cstr = strtok(nullptr, " "); if (!mount_cstr || !speed_cstr) return false; - uint32 mount = atoul(args); + uint32 mount = atoul(mount_cstr); if (!sCreatureDisplayInfoStore.LookupEntry(mount)) { handler->SendSysMessage(LANG_NO_MOUNT);