passant linters a vore si trobe variables sense inicialitzar
This commit is contained in:
@@ -24,7 +24,7 @@ Texture::Texture(SDL_Renderer *renderer, std::string path)
|
||||
// Carga el fichero en la textura
|
||||
if (!path_.empty()) {
|
||||
// Obtiene la extensión
|
||||
const std::string EXTENSION = path_.substr(path_.find_last_of(".") + 1);
|
||||
const std::string EXTENSION = path_.substr(path_.find_last_of('.') + 1);
|
||||
|
||||
// .png
|
||||
if (EXTENSION == "png") {
|
||||
|
||||
Reference in New Issue
Block a user