From 1ec5d5311a8ea395908f020721a05ab2936a0897 Mon Sep 17 00:00:00 2001 From: Nicola Pisanti Date: Mon, 1 Apr 2019 15:19:12 +0200 Subject: [PATCH] fixes for linux --- src/ofxBox2dBaseShape.cpp | 1 + src/ofxBox2dParticleSystem.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ofxBox2dBaseShape.cpp b/src/ofxBox2dBaseShape.cpp index 24a393b..cc9d8a9 100755 --- a/src/ofxBox2dBaseShape.cpp +++ b/src/ofxBox2dBaseShape.cpp @@ -140,6 +140,7 @@ void* ofxBox2dBaseShape::setData(void*data) { else { ofLog(OF_LOG_NOTICE, "ofxBox2dBaseShape:: - must have a valid body -"); } + return NULL; } //------------------------------------------------ diff --git a/src/ofxBox2dParticleSystem.cpp b/src/ofxBox2dParticleSystem.cpp index 1c91b00..125a96c 100755 --- a/src/ofxBox2dParticleSystem.cpp +++ b/src/ofxBox2dParticleSystem.cpp @@ -67,7 +67,7 @@ void ofxBox2dParticleSystem::draw(){ } int32 ofxBox2dParticleSystem::createParticle(ofVec2f position , ofVec2f velocity){ - createParticle(position.x, position.y, velocity.x, velocity.y); + return createParticle(position.x, position.y, velocity.x, velocity.y); } int32 ofxBox2dParticleSystem::createParticle(float posx, float posy, float velx, float vely){