mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
default to O2
This commit is contained in:
@@ -1121,7 +1121,7 @@ jobject JNICALL ScriptMethodsDataTableNamespace::dataTableGetRow(JNIEnv *env, jo
|
||||
|
||||
LocalRefPtr target = createNewObject(JavaLibrary::getClsDictionary(), JavaLibrary::getMidDictionary());
|
||||
if (target == LocalRef::cms_nullPtr)
|
||||
return false;
|
||||
return JNI_FALSE;
|
||||
|
||||
for (int i = 0; i < dt->getNumColumns(); ++i)
|
||||
{
|
||||
|
||||
@@ -1339,7 +1339,7 @@ jstring JNICALL ScriptMethodsShipNamespace::getShipComponentName(JNIEnv * env, j
|
||||
{
|
||||
ShipObject const * const shipObject = JavaLibrary::getShipThrow(env, jobject_shipId, "getShipComponentName() invalid ship", false);
|
||||
if (!shipObject)
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
Unicode::String const & name = shipObject->getComponentName(chassisSlot);
|
||||
if (!name.empty())
|
||||
@@ -4073,7 +4073,7 @@ jlongArray JNICALL ScriptMethodsShipNamespace::getShipCargoHoldContentsResourceT
|
||||
{
|
||||
ShipObject const * const shipObject = getShipThrowTestSlot(env, jobject_shipId, "getShipCargoHoldContents()", false, static_cast<int>(ShipChassisSlotType::SCST_cargo_hold));
|
||||
if (!shipObject)
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
ShipObject::NetworkIdIntMap const & contents = shipObject->getCargoHoldContents();
|
||||
|
||||
@@ -4099,7 +4099,7 @@ jintArray JNICALL ScriptMethodsShipNamespace::getShipCargoHoldContentsAmounts(JN
|
||||
{
|
||||
ShipObject const * const shipObject = getShipThrowTestSlot(env, jobject_shipId, "getShipCargoHoldContents()", false, static_cast<int>(ShipChassisSlotType::SCST_cargo_hold));
|
||||
if (!shipObject)
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
ShipObject::NetworkIdIntMap const & contents = shipObject->getCargoHoldContents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user