Permalink
Browse files

Fix compilation. Hopefully I broke nothing

  • Loading branch information...
1 parent 6dd4c6f commit a31ed23bc0512baca2b51a49a7f94484da7a1e55 @auriamg auriamg committed Jun 16, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/achievements/achievements_status.cpp
@@ -147,7 +147,7 @@ void AchievementsStatus::sync(const std::vector<uint32_t> & achieved_ids)
if(ids.size()>0)
{
- ids.pop_back(); // delete the last "," in the string
+ ids = ids.substr(0, ids.size() - 1); // delete the last "," in the string
Log::info("Achievements", "Synching achievement %d to server.",
ids.c_str());
Online::HTTPRequest * request = new Online::HTTPRequest(true, 2);

0 comments on commit a31ed23

Please sign in to comment.