Skip to content

Commit a7befb8

Browse files
committed
Changed path passed to game component to relative path
Signed-off-by: Patryk Antosz <[email protected]>
1 parent 195edcd commit a7befb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gems/GeoJSONSpawner/Code/Source/GeoJSONSpawner/GeoJSONSpawnerEditorComponent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ namespace GeoJSONSpawner
182182
const auto featureObjectInfo = GeoJSONUtils::ParseJSONFromFile(sourcePath.c_str());
183183
auto spawnableEntitiesInfo =
184184
GeoJSONUtils::GetSpawnableEntitiesFromFeatureObjectVector(featureObjectInfo, spawnableAssetConfigurationsMap);
185-
gameEntity->CreateComponent<GeoJSONSpawnerComponent>(spawnableAssetConfigurationsMap, sourcePath.c_str(), m_defaultSeed);
185+
gameEntity->CreateComponent<GeoJSONSpawnerComponent>(spawnableAssetConfigurationsMap, sourceAssetInfo.m_relativePath.c_str(), m_defaultSeed);
186186
m_spawnedTicketsGroups.clear();
187187
}
188188

0 commit comments

Comments
 (0)