2ed4ce70f8
from Brad
13 lines
529 B
Plaintext
13 lines
529 B
Plaintext
$OpenBSD: patch-lib_warmux_action_action_cpp,v 1.1 2012/04/05 16:26:32 ajacoutot Exp $
|
|
--- lib/warmux/action/action.cpp.orig Sat Mar 17 14:13:52 2012
|
|
+++ lib/warmux/action/action.cpp Sat Mar 17 14:14:06 2012
|
|
@@ -85,7 +85,7 @@ Action::Action(const char *buffer, DistantComputer* _c
|
|
{
|
|
m_creator = _creator;
|
|
|
|
- m_header.len = SDLNet_Read32(buffer);
|
|
+ m_header.len = SDLNet_Read32((Uint32*)buffer);
|
|
ASSERT(m_header.len >= sizeof(Header));
|
|
buffer += 4;
|
|
// All of the following could be skipped for the actions we now,
|