Add a default value to the selected variable in MainTranspile.cpp.

This commit is contained in:
Username404-59 2021-02-26 18:49:10 +01:00
parent ad2fcfd746
commit 086649a5cd
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -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]) {