summaryrefslogtreecommitdiff
path: root/src/functiondelete.cpp
blob: c9bfef4ff87d813802d8b3b2a0380cd2645788d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "functiondelete.h"

#include "gamestate.h"

FunctionDelete::FunctionDelete()
{
}

FunctionDelete::~FunctionDelete()
{
}

void FunctionDelete::call( class GameState &gState )
{
	Variable v = gState.pop();
	VariableRef r = v.getVariableRef();
	gState.delVariable( r.sName, r.sid );
}