Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5208 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Sep 19, 2005, 8:36:45 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: first fruits of valgrind…. delete[] are fine now :)

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r4992 r5208  
    9090    }
    9191    this->currentSlotConfig[i].position.setName(tmpName);
    92     delete tmpName;
     92    delete[] tmpName;
    9393  }
    9494
  • trunk/src/world_entities/world_entity.cc

    r5143 r5208  
    1919
    2020#include "world_entity.h"
     21#include "shell_command.h"
    2122
    2223#include "resource_manager.h"
     
    2728
    2829using namespace std;
     30
     31SHELL_COMMAND(model, WorldEntity, loadModel)
     32    ->describe("sets the Model of the WorldEntity")
     33    ->defaultValues(1, "models/ships/reaplow.obj");
     34
    2935
    3036/**
Note: See TracChangeset for help on using the changeset viewer.