diff options
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_abstractlist.cpp | 6 | ||||
-rw-r--r-- | src/ai/api/ai_engine.cpp | 2 | ||||
-rw-r--r-- | src/ai/api/ai_event_types.cpp | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/ai/api/ai_abstractlist.cpp b/src/ai/api/ai_abstractlist.cpp index ec2b7d4f5..e51713465 100644 --- a/src/ai/api/ai_abstractlist.cpp +++ b/src/ai/api/ai_abstractlist.cpp @@ -808,13 +808,15 @@ SQInteger AIAbstractList::Valuate(HSQUIRRELVM vm) switch (sq_gettype(vm, -1)) { case OT_INTEGER: { sq_getinteger(vm, -1, &value); - } break; + break; + } case OT_BOOL: { SQBool v; sq_getbool(vm, -1, &v); value = v ? 1 : 0; - } break; + break; + } default: { /* See below for explanation. The extra pop is the return value. */ diff --git a/src/ai/api/ai_engine.cpp b/src/ai/api/ai_engine.cpp index c235255ba..7710360e8 100644 --- a/src/ai/api/ai_engine.cpp +++ b/src/ai/api/ai_engine.cpp @@ -95,7 +95,7 @@ return capacities[c]; } return -1; - } break; + } case VEH_SHIP: case VEH_AIRCRAFT: diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp index d1e962c4c..b61e07605 100644 --- a/src/ai/api/ai_event_types.cpp +++ b/src/ai/api/ai_event_types.cpp @@ -56,7 +56,7 @@ int32 AIEventEnginePreview::GetCapacity() return capacities[c]; } return -1; - } break; + } case VEH_SHIP: case VEH_AIRCRAFT: |