mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 10:41:06 +00:00
Fixed: AS3 direct editation - coerce in setproperty
This commit is contained in:
+3
-2
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.abc.avm2.parser.script;
|
||||
|
||||
import com.jpexs.helpers.Reference;
|
||||
@@ -644,7 +645,7 @@ public class PropertyAVM2Item extends AssignableAVM2Item {
|
||||
String srcType = assignedValue.returnType().toString();
|
||||
GraphTargetItem coerced = assignedValue;
|
||||
if (!targetType.toString().equals(srcType) && !propertyName.startsWith("@")) {
|
||||
coerced = makeCoerced(assignedValue, targetType);
|
||||
//coerced = makeCoerced(assignedValue, targetType);
|
||||
}
|
||||
return toSourceMerge(localData, generator, obj, coerced,
|
||||
needsReturn ? dupSetTemp(localData, generator, ret_temp) : null,
|
||||
|
||||
Reference in New Issue
Block a user