From e32a3bc61c05b8190eaab1c8a91fc5e9ac25f4bd Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 3 Jun 2015 23:08:18 +0200 Subject: Fix loading of goings --- src/event.cc | 6 +++--- 1 file 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(added)); -- cgit v1.2.3-70-g09d2