Bug with copying map structure
Posted: Tue Jul 19, 2011 5:46 pm
Hi,
It appears theres problems with TailBite and copying maps, the following code causes TailBite to fail:
CopySkin.asm
line: 31
error code: -108
error string: Illegal Instruction
Thanks!
Chris.
It appears theres problems with TailBite and copying maps, the following code causes TailBite to fail:
CopySkin.asm
line: 31
error code: -108
error string: Illegal Instruction
Code: Select all
Structure skinProperties
value.s
resType.i
resData.i
resDataSize.i
EndStructure
Structure skinStates
Map property.skinProperties()
EndStructure
Structure skinComponents
Map state.skinStates()
EndStructure
Structure skins
name.s
author.s
date.s
version.s
url.s
Map component.skinComponents()
EndStructure
Global NewList skin.skins()
ProcedureDLL CopySkin(Skin.i) ; Returns a copy of the specified skin
ForEach skin()
If @skin() = Skin
tskin.skins
tskin = skin()
LastElement(skin())
If AddElement(skin()) <> 0
skin() = tskin
ProcedureReturn @skin()
EndIf
ProcedureReturn 0
EndIf
Next
ProcedureReturn 0
EndProcedure
Chris.