(function() {
    gf.HUD = {
        //has the HUD been initialized
        initialized: false,

        init: function(settings) {
            if(this.initialized) return;

            //is the HUD visible?
            this.visible = true;

            //use the passed settings object ot override the default values above
            gf.utils.setValues(this, settings);

            //create the base div of this element
            this._createElement();

            this.initialized = true;

            //some private stuffs
            this.dirty = true;

            //the items in this HUD
            this.items = {};
            this.numItems = 0;
        },
        addItem: function(name, item) {
            //increment if a new item
            if(!this.items[name]) this.numItems++;

            item.name = name;
            this.items[name] = item;
            this.dirty = true;
            this.elm.appendChild(item.elm);
            return this;
        },
        removeItem: function(name) {
            if(this.items[name]) {
                this.items[name].elm.parentNode.removeChild(this.items[name].elm);
                this.items[name] = null;
                this.numItems--;
                this.dirty = true;
            }

            return this;
        },
        setItemValue: function(name, value) {
            if(this.items[name]) {
                this.items[name].setValue(value);
                this.dirty = true;
            }

            return this;
        },
        getItemValue: function(name) {
            return (this.items[name] ? this.items[name].getValue() : null);
        },
        reset: function(name) {
            if(name !== undefined) {
                if(this.items[name]) this.items[name].reset();
                this.dirty = true;
            } else {
                this.resetAll();
            }

            return this;
        },
        resetAll: function() {
            gf.utils.each(this.items, function(name, item) {
                item.reset();
            });

            return this;
        },
        update: function() {
            if(!this.dirty) return;

            gf.utils.each(this.items, function(name, item) {
                if(item.visible) {
                    item.update();
                }
            });

            this.dirty = false;
        },
        _createElement: function() {
            this.elm = document.createElement('div');
            this.elm.className = 'gf-hud';

            this.elm.style.cssText = 'position: absolute; width: 100%; height: 100%; z-index: 6;';

            gf.game._cont.appendChild(this.elm);
        }
    };
})();
@@ -1134,32 +1134,39 @@
                 
+delete 
 this.items%5Bname%5D
@@ -1169,15 +1169,8 @@
 ame%5D
- = null
 ;%0A  
@@ -2657,8 +2657,9 @@
 %7D;%0A%7D)();
+%0A

Fix issue with removing hud items