forked from 0ad/0ad
previous fix was incorrect; utf16 was new and not yet committed
This was SVN commit r917.
This commit is contained in:
parent
bcbb2a36c7
commit
5f25030964
@ -3,7 +3,6 @@
|
||||
#include "EntityProperties.h"
|
||||
#include "BaseEntityCollection.h"
|
||||
#include "scripting/JSInterface_BaseEntity.h"
|
||||
#include "utf16string.h"
|
||||
|
||||
#undef new // to avoid confusing warnings
|
||||
|
||||
@ -116,7 +115,7 @@ void CBoundObjectProperty<CStrW>::set( const jsval value )
|
||||
|
||||
jsval CBoundObjectProperty<CStrW>::tojsval()
|
||||
{
|
||||
return( STRING_TO_JSVAL( JS_NewUCStringCopyZ( g_ScriptingHost.getContext(), utf16string().c_str() ) ) );
|
||||
return( STRING_TO_JSVAL( JS_NewUCStringCopyZ( g_ScriptingHost.getContext(), utf16().c_str() ) ) );
|
||||
}
|
||||
|
||||
CBoundObjectProperty<CVector3D>::CBoundObjectProperty()
|
||||
|
Loading…
Reference in New Issue
Block a user