Skip to content

Commit c24ff2d

Browse files
authored
optimization
1 parent ee55bf2 commit c24ff2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/0.3.7-R1/common.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
#include <Windows.h>
1212

1313
unsigned long SAMP::GetHandle() {
14-
return (unsigned long)GetModuleHandleA("samp.dll");
14+
static unsigned long dwHandle = (unsigned long)GetModuleHandleA("samp.dll");
15+
return dwHandle;
1516
}

0 commit comments

Comments
 (0)