obj/Characters
Click()
Pick(usr)
proc/Pick(mob/New_Player/P)
var/obj/Characters/O = new src // This is line 53
P.Selected_Chars += O
TestCharacter
Problem description:
I continuously get this runtime when clicking something:
proc name: Pick (/obj/Characters/proc/Pick)
source file: Character Selector.dm,53
usr: Vexonater (/mob/New_Player)
src: TestCharacter (/obj/Characters/TestCharacter)
call stack:
TestCharacter (/obj/Characters/TestCharacter): Pick(Vexonater (/mob/New_Player))
TestCharacter (/obj/Characters/TestCharacter): Click("Characters", "infowindow.info", "icon-x=55;icon-y=15;left=1")
To the extent of my knowledge, the issue is that "new src" is not a valid method of going about creating a new instance of src. What should I do instead to get this to work?
You can access an object's type path through its type var.