Code: Select all
../../include/irrArray.h:308: T& irr::core::array<T, TAlloc>::operator[](irr::u32) [with T = irr::core::vector3d<float>, TAlloc = irr::core::irrAllocator<irr::core::vector3d<float> >, irr::u32 = unsigned int]: Assertion `!(index>=used)' failed.
Code: Select all
IMeshSceneNode* node;
for (int i = 1; i <= 20; i++) {
std::stringstream ss;
ss << "data/media/cars/" << i << ".lwo";
std::string filepath = ss.str();
m_cars[i - 1] = m_smgr->getMesh(filepath.c_str());
//m_cars.push_back(m_smgr->getMesh(filepath.c_str());
}