ID:139255
 
Code:
proc
CacheHairs()
for(var/X in flist("Hairs/Base/"))
//spawn(-1) world << "Hair Icon found? [X]"
var/icon/I=new("Hairs/Base/[X]")
var/obj/Hair/H = new()
H.icon = I
Hairs += H

mob
proc
LoadHairs(list/HairList)
var/HairsVar=1
for(var/x in HairList)
HairsVar++
winset(src,"HairGrid","current-cell=1x[HairsVar]")
src << output(x,"HairGrid")


Problem description:

No hairs are shown. When the "world <<" line is not omitted, it posts as intended. When outputting the objects to HairGrid, nothing is shown.

Can provide more information on demand.

Hm, the way you are outputting the stuff is the old way. The new one is a one liner:
mob
proc
LoadHairs(list/HairList)
var/HairsVar=1
for(var/x in HairList)
src << output(x,"HairGrid:1x[++HairsVar]") // [ID]:[column],[row]

++var adds 1 and returns the value. var++ is returning the value before adding 1.

Did you passed Hairs as the argument? Did you make sure that the grid's ID is spelled correctly and the case sensitivity is correct?
In response to GhostAnime
The code runs fine, it seems the icons aren't loading into the cache :/

Any ideas?