]> git.tdb.fi Git - libs/datafile.git/commitdiff
Fix pointer loading
authorMikko Rasa <tdb@tdb.fi>
Thu, 8 Sep 2011 07:07:32 +0000 (10:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 8 Sep 2011 07:07:32 +0000 (10:07 +0300)
source/loaderaction.h

index 5b2f0b0f022016cc97dbce52bb3d09aab7887bf0..afca01e9ba3b478d95bd320e550f0cf7fbf08fff 100644 (file)
@@ -275,7 +275,7 @@ public:
        virtual void execute(Loader &l, const Statement &st) const
        {
                typename L::Loader &ldr = dynamic_cast<typename L::Loader &>(l);
-               ldr.get_object().*ptr0 = ldr.get_collection().template get<T0>(st.args[0].get<std::string>());
+               ldr.get_object().*ptr0 = &ldr.get_collection().template get<T0>(st.args[0].get<std::string>());
        }
 
        virtual std::string get_signature() const