1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

games/avp: unbreak

This commit is contained in:
Piotr Kubaj 2023-01-07 17:40:41 +01:00
parent 813eb0a4f0
commit 4b17a16f7e
2 changed files with 11 additions and 2 deletions

View File

@ -12,8 +12,6 @@ WWW= https://icculus.org/avp
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= Doesn't build with NDEBUG defined, error: invalid operands to binary expression ('int' and 'std::nullptr_t')
USES= cmake compiler:c++11-lang gl openal sdl
USE_GL= gl
USE_SDL= sdl

View File

@ -0,0 +1,11 @@
--- src/win95/chunk.cpp.orig 2023-01-07 16:38:50 UTC
+++ src/win95/chunk.cpp
@@ -437,7 +437,7 @@ Chunk* Chunk_With_Children::lookup_single_child (const
if (children)
while (child_ptr != NULL) {
- if (strncmp (class_ident, child_ptr->identifier, 8) == NULL)
+ if (strncmp (class_ident, child_ptr->identifier, 8) == 0)
{
assert (!child_ptr->r_u_miscellaneous());
return child_ptr;