Skip to content

Commit

Permalink
no double "if"
Browse files Browse the repository at this point in the history
  • Loading branch information
darealshinji authored Mar 12, 2018
1 parent 11c00fd commit 324c5ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Black Mesa/bms.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ void print_error(const char *message)

fprintf(stderr, "error: %s\n", message);

if ((sdl = dlopen("./bin/libSDL2-2.0.so.0", RTLD_LAZY)) == NULL) {
if ((sdl = dlopen("libSDL2-2.0.so.0", RTLD_LAZY)) == NULL) {
return;
}
if ((sdl = dlopen("./bin/libSDL2-2.0.so.0", RTLD_LAZY)) == NULL ||
(sdl = dlopen("libSDL2-2.0.so.0", RTLD_LAZY)) == NULL)
{
return;
}

#define DLSYM(type,func,param) \
Expand Down

0 comments on commit 324c5ef

Please sign in to comment.