null-pointer fix in vote description
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1947 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -6,11 +6,12 @@ struct serveraction
|
||||
{
|
||||
int role; // required client role
|
||||
int area; // only on ded servers
|
||||
char *desc;
|
||||
virtual ~serveraction() { DELETEA(desc); }
|
||||
string desc;
|
||||
|
||||
virtual void perform() = 0;
|
||||
virtual bool isvalid() { return true; }
|
||||
serveraction() : role(CR_DEFAULT), area(EE_DED_SERV), desc(NULL) {}
|
||||
serveraction() : role(CR_DEFAULT), area(EE_DED_SERV) { desc[0] = '\0'; }
|
||||
virtual ~serveraction() { }
|
||||
};
|
||||
|
||||
struct mapaction : serveraction
|
||||
|
||||
Reference in New Issue
Block a user