Skip to content

Commit

Permalink
Compile warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daid committed Oct 30, 2024
1 parent 0cd380f commit bb4b3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ static void luaCommandCancelSelfDestruct(sp::ecs::Entity ship) {
static void luaCommandConfirmDestructCode(sp::ecs::Entity ship, int index, int code) {
if (my_player_info && my_player_info->ship == ship) { my_player_info->commandConfirmDestructCode(index, code); return; }
if (auto self_destruct = ship.getComponent<SelfDestruct>()) {
if (index >= 0 && index < SelfDestruct::max_codes && self_destruct->code[index] == code && self_destruct->active)
if (index >= 0 && index < SelfDestruct::max_codes && int(self_destruct->code[index]) == code && self_destruct->active)
self_destruct->confirmed[index] = true;
}
}
Expand Down

1 comment on commit bb4b3d3

@daid-tinyci
Copy link

@daid-tinyci daid-tinyci bot commented on bb4b3d3 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TinyCI build failure:

[/home/tinyci/builds/daid/EmptyEpsilon/_build_native:ninja -j 10 package] returned [1]:


Reading api/all.lua

Reading api/modelData.lua

Reading api/shipTemplate.lua

Reading api/entity/spaceobject.lua

Reading api/entity/factioninfo.lua

Reading api/entity/shiptemplatebasedobject.lua

Reading api/entity/spaceship.lua

Reading api/entity/playerspaceship.lua

Reading api/entity/cpuship.lua

Reading api/entity/spacestation.lua

Reading api/entity/warpjammer.lua

Reading api/entity/artifact.lua

Reading api/entity/asteroid.lua

Reading api/entity/mine.lua

Reading api/entity/nebula.lua

Reading api/entity/blackhole.lua

Reading api/entity/planet.lua

Reading api/entity/sciencedatabase.lua

Reading api/entity/multiuse.lua

Reading api/entity/scanprobe.lua

Reading api/entity/supplydrop.lua

Reading api/entity/zone.lua

Reading api/gm.lua

Reading api/callsign.lua

[2/4] Building CXX object CMakeFiles/EmptyEpsilon.dir/src/script.cpp.o

[3/4] Linking CXX executable EmptyEpsilon

lto-wrapper: warning: using serial compilation of 92 LTRANS jobs

lto-wrapper: note: see the ‘-flto’ option documentation for more information

[3/4] Run CPack packaging tool...

CPack: Create package using DEB

CPack: Install projects

CPack: - Install project: EmptyEpsilon []

CMake Error at /data/tinyci_builds/daid/EmptyEpsilon/_build_native/cmake_install.cmake:82 (file):

  file INSTALL cannot find

  "/data/tinyci_builds/daid/EmptyEpsilon/io.github.daid.EmptyEpsilon.metainfo.xml":

  No such file or directory.





CPack Error: Error when generating package: EmptyEpsilon

FAILED: CMakeFiles/package.util 

cd /data/tinyci_builds/daid/EmptyEpsilon/_build_native && /usr/bin/cpack --config ./CPackConfig.cmake

ninja: build stopped: subcommand failed.

Please sign in to comment.