diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2015-06-03 23:08:18 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2015-06-03 23:08:18 +0200 |
| commit | e32a3bc61c05b8190eaab1c8a91fc5e9ac25f4bd (patch) | |
| tree | b22dd7173889c41db9eb82e12ea029837fcd85b4 | |
| parent | 4b467e6a914a8930b83f6483a072e7c9584a4ff5 (diff) | |
Fix loading of goings
| -rw-r--r-- | src/event.cc | 6 |
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, ¬e)) + if (!snapshot->get(3, ¬e)) note = ""; going_.emplace_back(name, is_going, note, static_cast<time_t>(added)); |
