mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Fix: the string literal is implicitly casted to the bool type.
This commit is contained in:
parent
e7eab10ad5
commit
e6673eaf30
2 changed files with 3 additions and 3 deletions
|
|
@ -222,7 +222,7 @@ extern "C" {
|
||||||
{
|
{
|
||||||
// maxArgs improper on a number of console function/methods
|
// maxArgs improper on a number of console function/methods
|
||||||
if (argc < entry->mMinArgs)// || argc > entry->mMaxArgs)
|
if (argc < entry->mMinArgs)// || argc > entry->mMaxArgs)
|
||||||
return "";
|
return false;
|
||||||
|
|
||||||
SimObject* o = NULL;
|
SimObject* o = NULL;
|
||||||
|
|
||||||
|
|
@ -230,7 +230,7 @@ extern "C" {
|
||||||
{
|
{
|
||||||
o = Sim::findObject(dAtoi(argv[1]));
|
o = Sim::findObject(dAtoi(argv[1]));
|
||||||
if (!o)
|
if (!o)
|
||||||
return "";
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return entry->cb.mBoolCallbackFunc(o, argc, argv);
|
return entry->cb.mBoolCallbackFunc(o, argc, argv);
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,7 @@ extern "C" {
|
||||||
Namespace::Entry* entry = GetEntry(nameSpace, name);
|
Namespace::Entry* entry = GetEntry(nameSpace, name);
|
||||||
|
|
||||||
if (!entry)
|
if (!entry)
|
||||||
return "";
|
return false;
|
||||||
|
|
||||||
return entry->cb.mBoolCallbackFunc(NULL, argc, argv);
|
return entry->cb.mBoolCallbackFunc(NULL, argc, argv);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue