diff options
Diffstat (limited to 'protocols/Dummy/src/dummy_proto.cpp')
-rw-r--r-- | protocols/Dummy/src/dummy_proto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 9acb26d22d..d891531220 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -81,9 +81,9 @@ CDummyProto::~CDummyProto() int CDummyProto::getTemplateId() { int id = this->getByte(DUMMY_ID_TEMPLATE, 0); - if (id < 0 || id >= _countof(templates)) { + if (id < 0 || id >= _countof(templates)) return 0; - } + return id; } |