games/avp: unbreak
This commit is contained in:
parent
813eb0a4f0
commit
4b17a16f7e
@ -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
|
||||
|
11
games/avp/files/patch-src_win95_chunk.cpp
Normal file
11
games/avp/files/patch-src_win95_chunk.cpp
Normal 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;
|
Loading…
Reference in New Issue
Block a user