Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core/ChatCommands: Do not parse partial strings for numeric paramters…
… (PR TrinityCore#25259) Check if integral/floating point type arguments were parsed successfully. std::stoull will happily parse floating point strings until the decimal separator and return the value. Make sure for all parsing methods that we actually parsed the whole token. This allows to use handler arguments like Variant<uint32, float> which will be populated with the right type depending on the token value (e.g "10" vs "10.0"). (cherry picked from commit 7edad0d)
- Loading branch information