Commit fc6ce975 authored by mercury233's avatar mercury233 Committed by GitHub

Update gframe/image_manager.cpp

Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent 04a56619
...@@ -228,7 +228,7 @@ irr::video::ITexture* ImageManager::GetTexture(int code, bool fit) { ...@@ -228,7 +228,7 @@ irr::video::ITexture* ImageManager::GetTexture(int code, bool fit) {
tMap[fit ? 1 : 0][code] = img; tMap[fit ? 1 : 0][code] = img;
return (img == nullptr) ? (fit ? tUnknownFit : tUnknown) : img; return (img == nullptr) ? (fit ? tUnknownFit : tUnknown) : img;
} }
if (tit->second) if(tit->second)
return tit->second; return tit->second;
else else
return fit ? tUnknownFit : tUnknown; return fit ? tUnknownFit : tUnknown;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment