Hi,
osg::ref_ptr<Geode> SGNewCloud::genCloud() {
...
+    GeodeList* g = (*iter).second;
+
+    if (iter == cloudMap.end() || g->size() < num_flavours)
...

dereferencing iterator::end is a no-no (it's not standard c++).

suggest:
    GeodeList* g;// = (*iter).second;

    if (iter == cloudMap.end() || (g=(*iter).second)->size() <
num_flavours)

Also, cull is thru the roof and it looks much nicer :)

greetings,
 yon
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to