fix(Core/Command): additem - doesn't work when name contains apostrophe (#3647)

This commit is contained in:
placemolle 2020-11-14 11:52:23 -05:00 committed by GitHub
parent 17bfcb77dc
commit d21b2eebe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1424,7 +1424,6 @@ public:
if (itemNameStr && itemNameStr[0])
{
std::string itemName = itemNameStr + 1;
WorldDatabase.EscapeString(itemName);
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_ITEM_TEMPLATE_BY_NAME);
stmt->setString(0, itemName);