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:
Matei
2005-12-15 21:59:48 +00:00
parent b14dc940ef
commit 2300a81070
6 changed files with 76 additions and 31 deletions
+1 -1
View File
@@ -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;