mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 10:52:59 +00:00
C++ code changes for new entities (mostly referring to the right new properties or XML attributes in CEntity.cpp and CBaseEntity.cpp).
This was SVN commit r3249.
This commit is contained in:
@@ -752,7 +752,7 @@ JSBool startPlacing( JSContext* cx, JSObject* UNUSED(globalObject), uint argc, j
|
||||
name = L"hele_ho"; // save some typing during testing
|
||||
}
|
||||
else {
|
||||
if(!ToPrimitive( g_ScriptingHost.GetContext(), argv[0], name ))
|
||||
if(!ToPrimitive<CStrW>( g_ScriptingHost.GetContext(), argv[0], name ))
|
||||
{
|
||||
JS_ReportError( cx, "Invalid template name argument" );
|
||||
*rval = JSVAL_NULL;
|
||||
|
||||
Reference in New Issue
Block a user