diff --git a/src/Editor/WorldEditor/CLayerModel.cpp b/src/Editor/WorldEditor/CLayerModel.cpp index 3cf7f689..a9fbb037 100644 --- a/src/Editor/WorldEditor/CLayerModel.cpp +++ b/src/Editor/WorldEditor/CLayerModel.cpp @@ -11,7 +11,7 @@ CLayerModel::~CLayerModel() = default; int CLayerModel::rowCount(const QModelIndex& /*parent*/) const { - return mpArea ? mpArea->NumScriptLayers() : 0; + return mpArea ? static_cast(mpArea->NumScriptLayers()) : 0; } QVariant CLayerModel::data(const QModelIndex &index, int role) const