diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-08-25 16:30:52 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2026-08-25 16:30:52 -0700 |
| commit | 680aac16d725032f41c0df14f227465a3a4fcd5e (patch) | |
| tree | 7e0662f85d9c150fe067bd437c8bdab34f060883 | |
| parent | f0dbf2d8c2371302e77988f0c884b1741f7b9f49 (diff) | |
Using the wrong object.
| -rw-r--r-- | indra/newview/llscripteditorws.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llscripteditorws.cpp b/indra/newview/llscripteditorws.cpp index 9d309af912..7757956542 100644 --- a/indra/newview/llscripteditorws.cpp +++ b/indra/newview/llscripteditorws.cpp @@ -1523,7 +1523,9 @@ LLSD LLScriptEditorWSServer::saveScript(LLViewerObject* prim, LLInventoryItem* i [&, prim_id, item_id](const std::string& pump_name) { auto [on_success, on_failure] = make_asset_upload_callbacks(pump_name); - bool is_running = item->getIsRunning(); + const LLViewerInventoryItem* viewer_item = + dynamic_cast<const LLViewerInventoryItem*>(item); + bool is_running = viewer_item ? viewer_item->getIsRunning() : false; if (params.has("running")) { is_running = params["running"].asBoolean(); |
