X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/41cd057bb981b3dc00cc527485c48549a912cb2b..e7b7bc2d8c852e52c08f833c1862c9edd5ace0ea:/projects/stargazer/user.cpp diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index 1b7d2f4c..6e77f0a5 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -1246,7 +1246,7 @@ while (it != messages.end()) WriteServLog("Error deleting message: '%s'", store->GetStrError().c_str()); printfd(__FILE__, "Error deleting message: '%s'\n", store->GetStrError().c_str()); } - messages.erase(it); + messages.erase(it++); } else { @@ -1255,9 +1255,9 @@ while (it != messages.end()) WriteServLog("Error modifying message: '%s'", store->GetStrError().c_str()); printfd(__FILE__, "Error modifying message: '%s'\n", store->GetStrError().c_str()); } + ++it; } } - ++it; } } //-----------------------------------------------------------------------------