Fix: the string literal is implicitly casted to the bool type.

This commit is contained in:
bank 2014-05-01 12:37:57 +04:00
parent e7eab10ad5
commit e6673eaf30
2 changed files with 3 additions and 3 deletions

View file

@ -222,7 +222,7 @@ extern "C" {
{
// maxArgs improper on a number of console function/methods
if (argc < entry->mMinArgs)// || argc > entry->mMaxArgs)
return "";
return false;
SimObject* o = NULL;
@ -230,7 +230,7 @@ extern "C" {
{
o = Sim::findObject(dAtoi(argv[1]));
if (!o)
return "";
return false;
}
return entry->cb.mBoolCallbackFunc(o, argc, argv);

View file

@ -303,7 +303,7 @@ extern "C" {
Namespace::Entry* entry = GetEntry(nameSpace, name);
if (!entry)
return "";
return false;
return entry->cb.mBoolCallbackFunc(NULL, argc, argv);
}