diff --git a/apps/opencs/view/world/table.cpp b/apps/opencs/view/world/table.cpp index 31180b3f1..eb7b8e334 100644 --- a/apps/opencs/view/world/table.cpp +++ b/apps/opencs/view/world/table.cpp @@ -146,6 +146,7 @@ void CSVWorld::Table::contextMenuEvent (QContextMenuEvent *event) QModelIndex index = mModel->index (row, mModel->findColumnIndex (CSMWorld::Columns::ColumnId_Modification)); + CSMWorld::RecordBase::State state = static_cast ( mModel->data (index).toInt());