Skip to content

Instantly share code, notes, and snippets.

View DirtYiCE's full-sized avatar

Kővágó Zoltán DirtYiCE

View GitHub Profile
/* Copyright © 2013 Kővágó, Zoltán
* Released under WTFPL 2.0, http://www.wtfpl.net/
* It comes without any warranty, to the extent permitted by applicable law.
*/
#ifndef TAGGED_CONTAINER_HPP
#define TAGGED_CONTAINER_HPP
#pragma once
#include <memory>
@DirtYiCE
DirtYiCE / newton.patch
Created February 27, 2011 23:18
dgAABBPolygonSoup segfault
Index: coreLibrary_200/source/core/dgAABBPolygonSoup.cpp
===================================================================
--- coreLibrary_200/source/core/dgAABBPolygonSoup.cpp (revision 141)
+++ coreLibrary_200/source/core/dgAABBPolygonSoup.cpp (working copy)
@@ -434,6 +434,8 @@
maxPasses --;
} while (maxPasses && (newCost < prevCost));
+ if (!nodesList.GetLast()) return root;
+
class MemCache
alias :restore0 :restore
def restore val, f = 0
Ramaze::Log.debug "Restoring #{val.inspect} (flags #{f.inspect})"
restore0 val, f
end
end