diff --git a/panda/src/pgraph/lodNode.cxx b/panda/src/pgraph/lodNode.cxx index ad768279ab..29c54030cf 100644 --- a/panda/src/pgraph/lodNode.cxx +++ b/panda/src/pgraph/lodNode.cxx @@ -52,7 +52,7 @@ TypeHandle LODNode::_type_handle; //////////////////////////////////////////////////////////////////// PT(LODNode) LODNode:: make_default_lod(const string &name) { - switch (default_lod_type) { + switch (default_lod_type.get_value()) { case LNT_pop: return new LODNode(name);