mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
fix: check if updateTextureSelectValue is defined before calling
This commit is contained in:
parent
a1f9c6dde3
commit
74b9310c57
1 changed files with 1 additions and 1 deletions
|
|
@ -487,7 +487,7 @@ async function parseLoadedData(data, mapVersion) {
|
|||
{
|
||||
// add custom texture if any
|
||||
const textureHref = texture.attr("data-href");
|
||||
if (textureHref) updateTextureSelectValue(textureHref);
|
||||
if (textureHref && typeof updateTextureSelectValue !== "undefined") updateTextureSelectValue(textureHref);
|
||||
}
|
||||
|
||||
// data integrity checks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue