Skip to content

Commit

Permalink
Fixed: Requesting Integer as String
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeter2 committed Sep 7, 2020
1 parent d35dce7 commit 2addc0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions analyzeFP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ vector<string> CVFPCPlugin::validizeSid(CFlightPlan flightPlan) {
int min_fl, max_fl;
if (conditions[i].HasMember("min_fl") && (min_fl = conditions[i]["min_fl"].GetInt()) > 0) {
if ((RFL / 100) >= min_fl) {
returnValid.push_back("Passed Minimum Flight Level (" + (string)conditions[i]["min_fl"].GetString() + ')');
returnValid.push_back("Passed Minimum Flight Level (" + to_string(conditions[i]["min_fl"].GetInt()) + ')');
passed[4] = true;
}
else {
Expand All @@ -293,7 +293,7 @@ vector<string> CVFPCPlugin::validizeSid(CFlightPlan flightPlan) {

if (conditions[i].HasMember("max_fl") && (max_fl = conditions[i]["max_fl"].GetInt()) > 0) {
if ((RFL / 100) <= max_fl) {
returnValid.push_back("Passed Maximum Flight Level (" + (string)conditions[i]["max_fl"].GetString() + ')');
returnValid.push_back("Passed Maximum Flight Level (" + to_string(conditions[i]["max_fl"].GetInt()) + ')');
passed[5] = true;
}
else {
Expand Down
2 changes: 1 addition & 1 deletion analyzeFP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "rapidjson/stringbuffer.h"

#define MY_PLUGIN_NAME "VFPC"
#define MY_PLUGIN_VERSION "2.0.5"
#define MY_PLUGIN_VERSION "2.0.6"
#define MY_PLUGIN_DEVELOPER "Jan Fries, Hendrik Peter, Sven Czarnian"
#define MY_PLUGIN_COPYRIGHT "GPL v3"
#define MY_PLUGIN_VIEW_AVISO "Vatsim FlightPlan Checker"
Expand Down

0 comments on commit 2addc0a

Please sign in to comment.