Add a default value to the selected variable in MainTranspile.cpp.
This commit is contained in:
parent
ad2fcfd746
commit
086649a5cd
@ -9,7 +9,7 @@ enum LANGUAGE: unsigned short {LUA=2,JS=3,PY=4};
|
||||
|
||||
pair<LANGUAGE, bool> validLanguage(const string& it) {
|
||||
const string languages[3] = {".lua", ".js", ".py"};
|
||||
LANGUAGE selected;
|
||||
LANGUAGE selected = LUA;
|
||||
bool valid = false;
|
||||
for (unsigned short i = 0; (i < languages->size()); i++) {
|
||||
if (it == languages[i]) {
|
||||
|
Loading…
Reference in New Issue
Block a user