mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-18 08:00:22 +02:00
fix(script): store the type name rather than throwing an exception when casting an unhandled type to string
This commit is contained in:
1 file changed
+1
-2
@@ -1198,8 +1198,7 @@ str ScriptVariable::stringValue() const
|
||||
+ str(m_data.vectorValue[2]) + str(" )");
|
||||
|
||||
default:
|
||||
throw ScriptException("Cannot cast '%s' to string", GetTypeName());
|
||||
break;
|
||||
return "Type: '" + str(GetTypeName()) + "'";
|
||||
}
|
||||
|
||||
return "";
|
||||
|
||||
Reference in new issue
Block a user