fix: bug en el editor al crear habitacions noves

This commit is contained in:
2026-04-06 17:44:13 +02:00
parent a52e6c709e
commit 8f6b5f7cac
10 changed files with 72 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ namespace Resource {
// Construir la ruta con variable ${PREFIX} (invertir la sustitución)
std::string var_path = path;
if (!prefix_.empty() && !executable_path_.empty()) {
if (!executable_path_.empty()) {
std::string full_prefix = executable_path_ + prefix_;
auto pos = var_path.find(full_prefix);
if (pos != std::string::npos) {
@@ -111,7 +111,7 @@ namespace Resource {
// Construir la ruta con variable ${PREFIX}
std::string var_path = file_path;
if (!prefix_.empty() && !executable_path_.empty()) {
if (!executable_path_.empty()) {
std::string full_prefix = executable_path_ + prefix_;
auto pos = var_path.find(full_prefix);
if (pos != std::string::npos) {