diff --git a/apps/openmw/mwdialogue/journalentry.cpp b/apps/openmw/mwdialogue/journalentry.cpp index 5e9dfa674..4eb6b8001 100644 --- a/apps/openmw/mwdialogue/journalentry.cpp +++ b/apps/openmw/mwdialogue/journalentry.cpp @@ -42,7 +42,7 @@ namespace MWDialogue iter!=dialogue->mInfo.end(); ++iter) if (iter->data.disposition==index) /// \todo cleanup info structure { - iter->id; + return iter->id; } throw std::runtime_error ("unknown journal index for topic " + topic); diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 76e68dd89..75b8aff8c 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -64,3 +64,5 @@ add_component_dir (interpreter include_directories(${BULLET_INCLUDE_DIRS}) add_library (components STATIC ${COMPONENT_FILES}) + +target_link_libraries (components ${Boost_LIBRARIES} ${OGRE_LIBRARIES})