Yes that is what I meant

I have a bug though. The if code doesn't seem to work here in my code. Here's the relevant code:
BMAP* interfacedummy_png = "InterfaceDummy.png";
...
PANEL* Pointer_ItemInSlot1 = interfacedummy_png;
...
function buy_stinger()
{
if (goldplayer >= 40) { //ignore this
if (Pointer_ItemInSlot1.bmap == interfacedummy_png) { //the slot = empty
Pointer_ItemInSlot1.bmap = IconItemStinger_bmp;
Pointer_ItemInSlot1.skill_x = 1; //ignore this
goldplayer -= 40;} //ignore this
...
The 'goldplayer' is not the problem, i know this 100% sure. The problem is that it ignores the "if (Pointer_ItemInSlot1.bmap == interfacedummy_png)" but I don't know why.