]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.cpp
Adapt to Collection API changes
[libs/gltk.git] / source / part.cpp
index 0ba03a3d3e1d027e2e50021212db4b1cfabd8862..127397924f19cf5039b2fe8f1b34df780be8ed8f 100644 (file)
@@ -59,7 +59,7 @@ Part::Loader::~Loader()
 
 void Part::Loader::graphic(State s, const string &n)
 {
-       Graphic *grph = get_collection().get<Graphic>(n);
+       Graphic *grph = &get_collection().get<Graphic>(n);
        for(int i=0; i<N_STATES_; ++i)
                if((i&s)==s)
                        obj.graphic[i] = grph;