-
Types Q! Error given...
Hi, Guys.
I have a module with a type called tPlayer.
In this type I have pMagic(1 To 5) As tMagic.
tMagic is another type in another module. In this module I have a Sub: Sub Magic(iMagic As Integer, iPlayer As tPlayer)
When I run my game, I get the error: 'Circular dependencies between modules'
What is that mean? Please Help!
Thank you,
Arie.
-
A circular dependency means you have objects referring to each other. What line does the code pop up on?
-
Post the code for your UDT
-
Just a note, you can't have a UDT that specifies itself in its data. Instead, use a have type, and then have its 'child' as a variable. You can then set that variable to be another 'tMagic'.