ID:145033
 
Code:
See belowwww

Problem description:

I've posted about this before, I don't think anyone replied and it's still happening =/

What do the errors "IncRefCount" or "DecRefCount" mean?

I get them in lines such as: "Byond(348.905) BUG: bad ref (2:14061) in IncRefCount(DM Build.dm:925)"

But here's line 925 of Build.dm:

X.icon = src.customtile2.icon


Anything wrong with that line would probably get caught by the compiler, and I hadn't seen this error until recently =/

It also does it with a few other lines, such as lines 67/68 of Stat Panel.dm, which is just a Statpanel() proc and a for() proc, but I've had those there a very long time; and I get it a LOT with lines 335 and 336 of Deadron's "implementdation.dm" in his Characterhandling library. Those lines, of course are:

if (new_mob)
mob = new_mob


It reports that bug like every time someone logs in, because it's in the base_LoadCharacter proc or something =/


I must use like 10,000 lines of "X.y = Z.y" and I have quite a few stat panels, and there are many, many "for()" procs; and it goes without saying that I have several hundered if() procs.

I'm not sure if this is a "Code Problem" or not =( I'd never seen that error before and I don't know what it means :(