Optimitzat el tema de comparacions i asignacions de strings buits. Mes que optimitzat, ara està mes mono
This commit is contained in:
@@ -23,7 +23,7 @@ Texture::Texture(SDL_Renderer *renderer, std::string path)
|
||||
palettes_.clear();
|
||||
|
||||
// Carga el fichero en la textura
|
||||
if (path_ != "")
|
||||
if (!path_.empty())
|
||||
{
|
||||
// Obtiene la extensión
|
||||
const std::string extension = path_.substr(path_.find_last_of(".") + 1);
|
||||
|
||||
Reference in New Issue
Block a user