mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-12 19:21:15 +00:00
fix Isle::ReadRegInt
This commit is contained in:
parent
4ec8c928f0
commit
d2544585ad
@ -155,12 +155,12 @@ int Isle::ReadRegInt(LPCSTR name, int *out)
|
||||
{
|
||||
char buffer[256];
|
||||
|
||||
if (ReadReg(name, buffer, sizeof(buffer))) {
|
||||
BOOL read = ReadReg(name, buffer, sizeof(buffer));
|
||||
if (read) {
|
||||
*out = atoi(buffer);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return read;
|
||||
}
|
||||
|
||||
// OFFSET: ISLE 0x4028d0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user