Browse Source

Fixed this call in primitive expansions

Who would've thought that a 'this' can be a non-object :thinking-face:
kindlich 5 years ago
parent
commit
d4a722cd92
No known key found for this signature in database

+ 1
- 1
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java View File

4138
 
4138
 
4139
 	@Override
4139
 	@Override
4140
 	public Void visitThis(ThisExpression expression) {
4140
 	public Void visitThis(ThisExpression expression) {
4141
-		javaWriter.loadObject(0);
4141
+		javaWriter.load(context.getType(expression.type), 0);
4142
 		return null;
4142
 		return null;
4143
 	}
4143
 	}
4144
 
4144
 

Loading…
Cancel
Save