Hi,

Fix return type to allow scorched3d to compile.

timo

Index: patches/patch-src_common_weapons_AccessoryStore_cpp
===================================================================
RCS file: patches/patch-src_common_weapons_AccessoryStore_cpp
diff -N patches/patch-src_common_weapons_AccessoryStore_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_common_weapons_AccessoryStore_cpp 9 Apr 2018 11:56:02 
-0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: src/common/weapons/AccessoryStore.cpp
+--- src/common/weapons/AccessoryStore.cpp.orig
++++ src/common/weapons/AccessoryStore.cpp
+@@ -156,7 +156,7 @@ AccessoryPart *AccessoryStore::createAccessoryPart(
+       Accessory *parent, XMLNode *currentNode)
+ {
+       XMLNode *typeNode = 0;
+-      if (!currentNode->getNamedParameter("type", typeNode)) return false;
++      if (!currentNode->getNamedParameter("type", typeNode)) return 0;
+ 
+       AccessoryPart *accessoryPart = 
+               
AccessoryMetaRegistration::getNewAccessory(typeNode->getContent(), this);

Reply via email to