Script functions: remove all BCCs at once instead of individually

master
Nicolas Hake 2018-07-24 14:24:19 +02:00
parent 1cd3534740
commit 829bb8cb28
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ void C4AulScriptFunc::RemoveLastBCC()
void C4AulScriptFunc::ClearCode()
{
while(Code.size() > 0)
RemoveLastBCC();
Code.clear();
PosForCode.clear();
// This function is now broken until an AddBCC call
}