mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix: the string literal is implicitly casted to the bool type.
This commit is contained in:
parent
e7eab10ad5
commit
e6673eaf30
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ extern "C" {
|
|||
Namespace::Entry* entry = GetEntry(nameSpace, name);
|
||||
|
||||
if (!entry)
|
||||
return "";
|
||||
return false;
|
||||
|
||||
return entry->cb.mBoolCallbackFunc(NULL, argc, argv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue