mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
grammar and new line
This commit is contained in:
parent
7b536ee079
commit
9385c33729
@ -119,6 +119,8 @@ std::string PropertyEntranceComponent::BuildQuery(Entity* entity, int32_t sortMe
|
|||||||
// Replace trailing comma with the closing parenthesis.
|
// Replace trailing comma with the closing parenthesis.
|
||||||
if (friendsList.at(friendsList.size() - 1) == ',') friendsList.erase(friendsList.size() - 1, 1);
|
if (friendsList.at(friendsList.size() - 1) == ',') friendsList.erase(friendsList.size() - 1, 1);
|
||||||
friendsList += ") ";
|
friendsList += ") ";
|
||||||
|
|
||||||
|
// If we have no friends then use a -1 for the query.
|
||||||
if (friendsList.find("()") == std::string::npos) {
|
if (friendsList.find("()") == std::string::npos) {
|
||||||
orderBy = friendsList;
|
orderBy = friendsList;
|
||||||
} else {
|
} else {
|
||||||
@ -128,6 +130,7 @@ std::string PropertyEntranceComponent::BuildQuery(Entity* entity, int32_t sortMe
|
|||||||
|
|
||||||
delete friendsListQueryResult;
|
delete friendsListQueryResult;
|
||||||
friendsListQueryResult = nullptr;
|
friendsListQueryResult = nullptr;
|
||||||
|
|
||||||
delete friendsListQuery;
|
delete friendsListQuery;
|
||||||
friendsListQuery = nullptr;
|
friendsListQuery = nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user