This commit is contained in:
Benau 2019-06-12 08:44:39 +08:00
parent 65a54cbd8b
commit f07110ed26

View File

@ -149,7 +149,16 @@ void ServerSelection::init()
for (unsigned i = 0; i < track_manager->getNumberOfTracks(); i++) for (unsigned i = 0; i < track_manager->getNumberOfTracks(); i++)
{ {
Track* t = track_manager->getTrack(i); Track* t = track_manager->getTrack(i);
video::ITexture* tex =irr_driver->getTexture(t->getScreenshotFile()); video::ITexture* tex = NULL;
if (t->isInternal())
{
tex = irr_driver->getTexture(file_manager
->getAsset(FileManager::GUI_ICON, "main_help.png"));
}
else
{
tex = irr_driver->getTexture(t->getScreenshotFile());
}
if (!tex) if (!tex)
{ {
tex = irr_driver->getTexture(file_manager tex = irr_driver->getTexture(file_manager