Fix VM.restoreData
This commit is contained in:
@@ -375,6 +375,7 @@ class VM
|
||||
currentData.index = currentData.table.label[name.name];
|
||||
else if (name.name in slot.globalData.table.label)
|
||||
{
|
||||
currentData.table = slot.globalData.table;
|
||||
currentData.index = slot.globalData.table.label[name.name];
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1861,7 +1861,6 @@ class BuiltinFunction
|
||||
if(va_args[0].isString)
|
||||
{
|
||||
VM vm = p.vm;
|
||||
vm.pushDataIndex();
|
||||
vm.restoreData(va_args[0].castDString);
|
||||
auto count = vm.readData().castInteger;//読み込むスプライト数
|
||||
int defno = 0;//?
|
||||
@@ -1877,7 +1876,6 @@ class BuiltinFunction
|
||||
p.sprite.SPDEFTable[defno] = SpriteDef(U, V, W, H, HX, HY, cast(SpriteAttr)ATTR);
|
||||
defno++;
|
||||
}
|
||||
vm.popDataIndex();
|
||||
return;
|
||||
}
|
||||
throw new IllegalFunctionCall("SPDEF");
|
||||
|
||||
Reference in New Issue
Block a user