fixed mingw libraries static compilation

This commit is contained in:
Timerix 2025-04-26 01:41:04 +05:00
parent 5c6fe5944a
commit 1940d01d9b
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ case "$OS" in
WINDOWS)
EXEC_FILE="$PROJECT.exe"
SHARED_LIB_FILE="$PROJECT.dll"
LINKER_LIBS=""
LINKER_LIBS="-static -lstdc++ -lpthread"
;;
LINUX)
EXEC_FILE="$PROJECT"

View File

@ -101,7 +101,7 @@ void Engine::updateGameObjects(f64 deltaTime){
game::GameObject& Engine::createGameObject(){
auto pair = gameObjectPool.emplace(game::GameObject(mono.createObject(gameObjectClass)));
game::GameObject& obj = pair.second;
gameObjectCtor(obj.getObjectHandle().getObject(), obj_id++, pair.first);
gameObjectCtor(obj.getObjectHandle().getObject(), ++obj_id, pair.first);
return obj;
}