Fix #3936
This commit is contained in:
parent
65a54cbd8b
commit
f07110ed26
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user