diff --git a/source/scripting/JSConversions.h b/source/scripting/JSConversions.h index 359e1e3fe7..84ef37da46 100755 --- a/source/scripting/JSConversions.h +++ b/source/scripting/JSConversions.h @@ -34,7 +34,7 @@ template T* ToNative( JSContext* cx, JSObject* obj ) template JSObject* ToScript( T* Native ) { if( !Native ) - return( JSVAL_NULL ); + return( (JSObject*)JSVAL_NULL ); return( Native->GetScript() ); }