Index: parseobject.cpp =================================================================== --- parseobject.cpp (revision 4582) +++ parseobject.cpp (working copy) @@ -578,7 +578,7 @@ static ScriptedOrbit* CreateScriptedOrbit(Hash* orbitData, - const string& /*path*/) + const string& path) { #if !defined(CELX) clog << "ScriptedOrbit not usable without scripting support.\n"; @@ -597,6 +597,10 @@ string moduleName; orbitData->getString("Module", moduleName); + string* pathCopy = new string(path); + Value* pathValue = new Value(*pathCopy); + orbitData->addValue("AddonPath", *pathValue); + ScriptedOrbit* scriptedOrbit = new ScriptedOrbit(); if (scriptedOrbit != NULL) { @@ -971,7 +975,7 @@ static ScriptedRotation* CreateScriptedRotation(Hash* rotationData, - const string& /*path*/) + const string& path) { #if !defined(CELX) clog << "ScriptedRotation not usable without scripting support.\n"; @@ -990,6 +994,10 @@ string moduleName; rotationData->getString("Module", moduleName); + string* pathCopy = new string(path); + Value* pathValue = new Value(*pathCopy); + rotationData->addValue("AddonPath", *pathValue); + ScriptedRotation* scriptedRotation = new ScriptedRotation(); if (scriptedRotation != NULL) {