use CopiedString.empty()

This commit is contained in:
Garux
2024-02-02 01:04:42 +06:00
parent 1f2e1616a8
commit 649fcd4067
5 changed files with 6 additions and 6 deletions

View File

@@ -333,7 +333,7 @@ typedef std::pair<LoadImageCallback, CopiedString> TextureKey;
void qtexture_realise( qtexture_t& texture, const TextureKey& key ){
texture.texture_number = 0;
if ( !string_empty( key.second.c_str() ) ) {
if ( !key.second.empty() ) {
if( !key.first.m_skybox ){
Image* image = key.first.loadImage( key.second.c_str() );
if ( image != 0 ) {