Fix array operator creating array of type error.

This commit is contained in:
2023-03-09 16:27:16 +08:00
parent 43488cd002
commit 536a3066b2

View File

@@ -280,6 +280,7 @@ namespace Cryville.Crtr {
protected override void Execute() {
var o0 = GetOperand(0);
int type = o0.Type;
if (type == PdtInternalType.Error) throw new InvalidOperationException("Error");
int len = o0.Length;
bool blit = !IsBlittable(type);
for (var i = 1; i < LoadedOperandCount; i++) {