aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Conditions/ConditionMgr.cpp
diff options
context:
space:
mode:
authorPeter Keresztes Schmidt <carbenium@outlook.com>2020-08-16 21:32:31 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-26 22:30:13 +0100
commitd33214c50a738372ebf805d9bb00ed38a622aa1a (patch)
treee6e5cd41ea056e2e5e7078cd1951ceed6dfb448d /src/server/game/Conditions/ConditionMgr.cpp
parentf2ee365da43f851181c8a486e10325a95b75c55d (diff)
Core/ChatCommands: Do not parse partial strings for numeric paramters (PR #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 7edad0d601a7ae925cba850c5a23019f99be2a1e)
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
0 files changed, 0 insertions, 0 deletions