Fix warning when eliminate a kart in battle mode
This commit is contained in:
parent
5c4b61a26e
commit
59edb96489
@ -405,7 +405,7 @@ TrackObjectPresentationMesh::TrackObjectPresentationMesh(
|
||||
World::getWorld()->getIdent() == IDENT_CUTSCENE);
|
||||
|
||||
m_model_file = model_file;
|
||||
|
||||
file_manager->pushTextureSearchPath(StringUtils::getPath(model_file));
|
||||
if (file_manager->fileExists(model_file))
|
||||
{
|
||||
if (animated)
|
||||
@ -419,6 +419,7 @@ TrackObjectPresentationMesh::TrackObjectPresentationMesh(
|
||||
throw std::runtime_error("Model '" + model_file + "' cannot be found");
|
||||
}
|
||||
|
||||
file_manager->popTextureSearchPath();
|
||||
init(NULL, NULL, true);
|
||||
} // TrackObjectPresentationMesh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user