1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-02-06 18:58:29 +00:00
openmw/components/esm/cellcommon.cpp
2023-01-26 22:37:31 +01:00

15 lines
330 B
C++

#include <components/esm/cellcommon.hpp>
#include <components/esm3/loadcell.hpp>
#include <components/esm4/loadcell.hpp>
namespace ESM
{
const ESM::CellCommon* CellVariant::getCommon() const
{
auto cell3 = getEsm3();
if (cell3)
return cell3;
else
return getEsm4();
}
}