summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-06-03 23:08:18 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-06-03 23:08:18 +0200
commite32a3bc61c05b8190eaab1c8a91fc5e9ac25f4bd (patch)
treeb22dd7173889c41db9eb82e12ea029837fcd85b4 /src
parent4b467e6a914a8930b83f6483a072e7c9584a4ff5 (diff)
Fix loading of goings
Diffstat (limited to 'src')
-rw-r--r--src/event.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event.cc b/src/event.cc
index 02343c9..4061df9 100644
--- a/src/event.cc
+++ b/src/event.cc
@@ -198,10 +198,10 @@ private:
bool is_going;
std::string note;
int64_t added;
- if (!snapshot->get(0, &name) || !snapshot->get(1, &is_going) ||
- !snapshot->get(3, &added))
+ if (!snapshot->get(1, &name) || !snapshot->get(2, &is_going) ||
+ !snapshot->get(4, &added))
return false;
- if (!snapshot->get(2, &note))
+ if (!snapshot->get(3, &note))
note = "";
going_.emplace_back(name, is_going, note,
static_cast<time_t>(added));